diff --git a/api/desc/pcm.api b/api/desc/pcm.api index 03779d46..7278fae0 100644 --- a/api/desc/pcm.api +++ b/api/desc/pcm.api @@ -1031,6 +1031,9 @@ service pcm { @handler alertRulesHandler get /monitoring/alert/rule (AlertRulesReq) returns (AlertRulesResp) + @handler DeleteAlertRuleHandler + delete /cloud/alert/rule (DeleteAlertRuleReq) + @doc "cluster resource load" @handler clustersLoadHandler get /monitoring/cluster/load (clustersLoadReq) returns (clustersLoadResp) diff --git a/api/internal/handler/routes.go b/api/internal/handler/routes.go index a7a34e04..03a8dab5 100644 --- a/api/internal/handler/routes.go +++ b/api/internal/handler/routes.go @@ -1297,16 +1297,16 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { Path: "/monitoring/alert/rule", Handler: monitoring.CreateAlertRuleHandler(serverCtx), }, - { - Method: http.MethodDelete, - Path: "/monitoring/alert/rule", - Handler: monitoring.DeleteAlertRuleHandler(serverCtx), - }, { Method: http.MethodGet, Path: "/monitoring/alert/rule", Handler: monitoring.AlertRulesHandler(serverCtx), }, + { + Method: http.MethodDelete, + Path: "/cloud/alert/rule", + Handler: monitoring.DeleteAlertRuleHandler(serverCtx), + }, { Method: http.MethodGet, Path: "/monitoring/cluster/load", diff --git a/api/internal/types/types.go b/api/internal/types/types.go index 7846c506..c66655db 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -1164,7 +1164,7 @@ type CommitHpcTaskReq struct { Description string `json:"description,optional"` TenantId int64 `json:"tenantId,optional"` TaskId int64 `json:"taskId,optional"` - AdapterIds []string `json:"adapterIds"` + AdapterIds []string `json:"adapterId"` MatchLabels map[string]string `json:"matchLabels,optional"` CardCount int64 `json:"cardCount,optional"` WorkDir string `json:"workDir,optional"` //paratera:workingDir