mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(climc): monitor-alertrecords-total-alert command (#23265)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user