feat(suggestion,mcclient): add suggestsysalert-delete climc

This commit is contained in:
zhaoxiangchun
2021-04-22 17:00:14 +08:00
parent b1d5758575
commit eeb77e4c3a
2 changed files with 13 additions and 0 deletions
@@ -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))
}
@@ -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
}