fix(climc): monitor-alertrecords-total-alert command (#23265)

This commit is contained in:
Zexi Li
2025-09-10 14:17:41 +08:00
committed by GitHub
parent 0c090d08f2
commit 1a4a0fe647
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -23,5 +23,5 @@ func init() {
cmd := NewResourceCmd(modules.AlertRecordManager)
cmd.List(new(options.AlertRecordListOptions))
cmd.Show(new(options.AlertRecordShowOptions))
cmd.Get("", new(options.AlertRecordTotalOptions))
cmd.GetProperty(new(options.AlertRecordTotalOptions))
}
+2 -3
View File
@@ -53,7 +53,6 @@ func (o *AlertRecordShowOptions) GetId() string {
}
type AlertRecordTotalOptions struct {
ID string `help:"total-alert" json:"-"`
options.BaseListOptions
}
@@ -61,8 +60,8 @@ func (o *AlertRecordTotalOptions) Params() (jsonutils.JSONObject, error) {
return options.ListStructToParams(o)
}
func (o *AlertRecordTotalOptions) GetId() string {
return o.ID
func (o *AlertRecordTotalOptions) Property() string {
return "total-alert"
}
type AlertRecordShieldListOptions struct {