delete alertrule

Former-commit-id: dcff95ad60288cbcb62998aa849909fdbd543a8c
This commit is contained in:
zhangwei 2024-05-11 18:28:07 +08:00
parent 81f81d209e
commit c14b67d312
3 changed files with 9 additions and 6 deletions

View File

@ -1031,6 +1031,9 @@ service pcm {
@handler alertRulesHandler @handler alertRulesHandler
get /monitoring/alert/rule (AlertRulesReq) returns (AlertRulesResp) get /monitoring/alert/rule (AlertRulesReq) returns (AlertRulesResp)
@handler DeleteAlertRuleHandler
delete /cloud/alert/rule (DeleteAlertRuleReq)
@doc "cluster resource load" @doc "cluster resource load"
@handler clustersLoadHandler @handler clustersLoadHandler
get /monitoring/cluster/load (clustersLoadReq) returns (clustersLoadResp) get /monitoring/cluster/load (clustersLoadReq) returns (clustersLoadResp)

View File

@ -1297,16 +1297,16 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/monitoring/alert/rule", Path: "/monitoring/alert/rule",
Handler: monitoring.CreateAlertRuleHandler(serverCtx), Handler: monitoring.CreateAlertRuleHandler(serverCtx),
}, },
{
Method: http.MethodDelete,
Path: "/monitoring/alert/rule",
Handler: monitoring.DeleteAlertRuleHandler(serverCtx),
},
{ {
Method: http.MethodGet, Method: http.MethodGet,
Path: "/monitoring/alert/rule", Path: "/monitoring/alert/rule",
Handler: monitoring.AlertRulesHandler(serverCtx), Handler: monitoring.AlertRulesHandler(serverCtx),
}, },
{
Method: http.MethodDelete,
Path: "/cloud/alert/rule",
Handler: monitoring.DeleteAlertRuleHandler(serverCtx),
},
{ {
Method: http.MethodGet, Method: http.MethodGet,
Path: "/monitoring/cluster/load", Path: "/monitoring/cluster/load",

View File

@ -1164,7 +1164,7 @@ type CommitHpcTaskReq struct {
Description string `json:"description,optional"` Description string `json:"description,optional"`
TenantId int64 `json:"tenantId,optional"` TenantId int64 `json:"tenantId,optional"`
TaskId int64 `json:"taskId,optional"` TaskId int64 `json:"taskId,optional"`
AdapterIds []string `json:"adapterIds"` AdapterIds []string `json:"adapterId"`
MatchLabels map[string]string `json:"matchLabels,optional"` MatchLabels map[string]string `json:"matchLabels,optional"`
CardCount int64 `json:"cardCount,optional"` CardCount int64 `json:"cardCount,optional"`
WorkDir string `json:"workDir,optional"` //paratera:workingDir WorkDir string `json:"workDir,optional"` //paratera:workingDir