diff --git a/cmd/climc/shell/suggestion/suggestsysalert.go b/cmd/climc/shell/suggestion/suggestsysalert.go index c156e87ea7..e9ddd70db2 100644 --- a/cmd/climc/shell/suggestion/suggestsysalert.go +++ b/cmd/climc/shell/suggestion/suggestsysalert.go @@ -25,6 +25,7 @@ func init() { cmd.List(new(options.SuggestSysAlertListOptions)) cmd.Show(new(options.SSuggestAlertShowOptions)) cmd.Perform("ignore", new(options.SuggestAlertIgnoreOptions)) + cmd.BatchDelete(new(options.SuggestAlertBatchDeleteOptions)) cmd_ := shell.NewResourceCmd(monitor.SuggestSysAlertCostManager) cmd_.Get("", new(options.SuggestAlertCostOptions)) } diff --git a/pkg/mcclient/options/monitor/suggestsysalert.go b/pkg/mcclient/options/monitor/suggestsysalert.go index 60cbda1ddd..452f069737 100644 --- a/pkg/mcclient/options/monitor/suggestsysalert.go +++ b/pkg/mcclient/options/monitor/suggestsysalert.go @@ -70,3 +70,15 @@ func (o *SuggestAlertCostOptions) Params() (jsonutils.JSONObject, error) { func (o *SuggestAlertCostOptions) GetId() string { return o.ID } + +type SuggestAlertBatchDeleteOptions struct { + ID []string `help:"ID of models to operate"` +} + +func (o SuggestAlertBatchDeleteOptions) GetIds() []string { + return o.ID +} + +func (o SuggestAlertBatchDeleteOptions) Params() (jsonutils.JSONObject, error) { + return nil, nil +}