mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
feat(suggestion,mcclient): add suggestsysalert-delete climc
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user