Documentation ¶
Index ¶
- type AlertCloneDashboardOptions
- type AlertClonePanelOptions
- type AlertConditionOptions
- type AlertCreateOptions
- type AlertDashBoardCreateOptions
- type AlertDashBoardDeleteOptions
- type AlertDashBoardListOptions
- type AlertDashBoardShowOptions
- type AlertDeleteOptions
- type AlertListOptions
- type AlertNotificationAttachOptions
- type AlertNotificationListOptions
- type AlertPanelCreateOptions
- type AlertPanelDeleteOptions
- type AlertPanelListOptions
- type AlertPanelShowOptions
- type AlertPauseOptions
- type AlertRecordListOptions
- type AlertRecordShieldCreateOptions
- type AlertRecordShieldDeleteOptions
- type AlertRecordShieldListOptions
- type AlertRecordShieldShowOptions
- type AlertRecordShowOptions
- type AlertRecordTotalOptions
- type AlertResourceAlertListOptions
- type AlertResourceDeleteOptions
- type AlertResourceListOptions
- type AlertResourceShowOptions
- type AlertShowOptions
- type AlertStatesOptions
- type AlertTestRunOptions
- type AlertUpdateOptions
- type CommonAlertConditionOptions
- type CommonAlertCreateOptions
- type CommonAlertDeleteOptions
- type CommonAlertListOptions
- type CommonAlertShowOptions
- type CommonAlertUpdateOptions
- type DataSourceCreateOptions
- type DataSourceDeleteOptions
- type DataSourceListOptions
- type InfluxdbShemaListOptions
- type InfluxdbShemaShowOptions
- type MetricDeleteOptions
- type MetricFieldDeleteOptions
- type MetricFieldShowOptions
- type MetricFieldUpdateOptions
- type MetricShowOptions
- type MetricUpdateOptions
- type MigrationAlertCreateOptions
- type MigrationAlertListOptions
- type MigrationAlertShowOptions
- type MonitorMetricFieldListOptions
- type MonitorMetricListOptions
- type MonitorResourceAlertListOptions
- type MonitorResourceJointAlertOptions
- type NotificationCreateOptions
- type NotificationDeleteOptions
- type NotificationDingDingCreateOptions
- type NotificationFeishuCreateOptions
- type NotificationFields
- type NotificationListOptions
- type NotificationShowOptions
- type NotificationUpdateOptions
- type SimpleQueryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertCloneDashboardOptions ¶
type AlertCloneDashboardOptions struct { ID string `help:"ID of alart " json:"-"` CloneName string `json:"clone_name" help:"new dashboard name"` }
func (*AlertCloneDashboardOptions) GetId ¶
func (o *AlertCloneDashboardOptions) GetId() string
func (*AlertCloneDashboardOptions) Params ¶
func (o *AlertCloneDashboardOptions) Params() (jsonutils.JSONObject, error)
type AlertClonePanelOptions ¶
type AlertClonePanelOptions struct { ID string `help:"ID of alart " json:"-"` PanelId string `help:"ID of alertPanel" json:"panel_id"` ClonePanelName string `help:"new panel name" json:"clone_panel_name"` }
func (*AlertClonePanelOptions) GetId ¶
func (o *AlertClonePanelOptions) GetId() string
func (*AlertClonePanelOptions) Params ¶
func (o *AlertClonePanelOptions) Params() (jsonutils.JSONObject, error)
type AlertConditionOptions ¶
type AlertConditionOptions struct { REDUCER string `help:"Metric query reducer, e.g. 'avg'" choices:"avg|sum|min|max|count|last|median"` DATABASE string `help:"Metric database, e.g. 'telegraf'"` METRIC string `help:"Query metric format <measurement>.<field>, e.g. 'cpu.cpu_usage'"` COMPARATOR string `help:"Evaluator compare" choices:"gt|lt"` THRESHOLD float64 `help:"Alert threshold"` Period string `help:"Query metric period e.g. '5m', '1h'" default:"5m"` Tag []string `help:"Query tag, e.g. 'zone=zon0,name=vmname'"` }
func (AlertConditionOptions) Params ¶
func (opt AlertConditionOptions) Params(conf *monitor2.AlertConfig) (*monitor2.AlertCondition, error)
type AlertCreateOptions ¶
type AlertCreateOptions struct { AlertConditionOptions AlertStatesOptions NAME string `help:"Name of the alert"` Frequency string `help:"Alert execute frequency, e.g. '5m', '1h'"` Enabled bool `help:"Enable alert"` Level string `help:"Alert level"` For string `help:"For time duration"` }
func (AlertCreateOptions) Params ¶
func (opt AlertCreateOptions) Params() (jsonutils.JSONObject, error)
type AlertDashBoardCreateOptions ¶
type AlertDashBoardCreateOptions struct { apis.ScopedResourceCreateInput NAME string `help:"Name of bashboard"` Refresh string `help:"dashboard query refresh priod e.g. 1m|5m"` }
func (*AlertDashBoardCreateOptions) Params ¶
func (o *AlertDashBoardCreateOptions) Params() (jsonutils.JSONObject, error)
type AlertDashBoardDeleteOptions ¶
type AlertDashBoardDeleteOptions struct {
ID string `json:"-"`
}
func (*AlertDashBoardDeleteOptions) GetId ¶
func (o *AlertDashBoardDeleteOptions) GetId() string
func (*AlertDashBoardDeleteOptions) Params ¶
func (o *AlertDashBoardDeleteOptions) Params() (jsonutils.JSONObject, error)
type AlertDashBoardListOptions ¶
type AlertDashBoardListOptions struct {
options.BaseListOptions
}
func (*AlertDashBoardListOptions) Params ¶
func (o *AlertDashBoardListOptions) Params() (jsonutils.JSONObject, error)
type AlertDashBoardShowOptions ¶
type AlertDashBoardShowOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*AlertDashBoardShowOptions) GetId ¶
func (o *AlertDashBoardShowOptions) GetId() string
func (*AlertDashBoardShowOptions) Params ¶
func (o *AlertDashBoardShowOptions) Params() (jsonutils.JSONObject, error)
type AlertDeleteOptions ¶
type AlertDeleteOptions struct {
ID []string `help:"ID of alert to delete"`
}
func (AlertDeleteOptions) GetIds ¶
func (o AlertDeleteOptions) GetIds() []string
func (AlertDeleteOptions) Params ¶
func (o AlertDeleteOptions) Params() (jsonutils.JSONObject, error)
type AlertListOptions ¶
type AlertListOptions struct {
options.BaseListOptions
}
func (AlertListOptions) Params ¶
func (o AlertListOptions) Params() (jsonutils.JSONObject, error)
type AlertNotificationListOptions ¶
type AlertNotificationListOptions struct { options.BaseListOptions Alert string `help:"ID or name of alert" short-token:"a"` Notification string `help:"ID or name of notification" short-token:"n"` }
type AlertPanelCreateOptions ¶
type AlertPanelCreateOptions struct { apis.ScopedResourceCreateInput DashboardId string `help:"id of attached dashboard"` NAME string `help:"Name of bashboard"` Metric string `help:"Metric name, include measurement and field, e.g. vm_cpu.usage_active" required:"true"` Database string Interval string `help:"query aggregation interval e.g. 1m|5s"` From string `help:"query start time e.g. 5m|6h"` To string `help:"query end time"` }
func (*AlertPanelCreateOptions) Params ¶
func (o *AlertPanelCreateOptions) Params() (jsonutils.JSONObject, error)
type AlertPanelDeleteOptions ¶
type AlertPanelDeleteOptions struct {
ID string `json:"-"`
}
func (*AlertPanelDeleteOptions) GetId ¶
func (o *AlertPanelDeleteOptions) GetId() string
func (*AlertPanelDeleteOptions) Params ¶
func (o *AlertPanelDeleteOptions) Params() (jsonutils.JSONObject, error)
type AlertPanelListOptions ¶
type AlertPanelListOptions struct { options.BaseListOptions DashboardId string `help:"id of attached dashboard"` }
func (*AlertPanelListOptions) Params ¶
func (o *AlertPanelListOptions) Params() (jsonutils.JSONObject, error)
type AlertPanelShowOptions ¶
type AlertPanelShowOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*AlertPanelShowOptions) GetId ¶
func (o *AlertPanelShowOptions) GetId() string
func (*AlertPanelShowOptions) Params ¶
func (o *AlertPanelShowOptions) Params() (jsonutils.JSONObject, error)
type AlertPauseOptions ¶
type AlertPauseOptions struct { ID string `help:"ID of alert to delete"` UnPause bool `help:"Unpause alert"` }
func (AlertPauseOptions) Description ¶
func (o AlertPauseOptions) Description() string
func (AlertPauseOptions) GetId ¶
func (o AlertPauseOptions) GetId() string
func (AlertPauseOptions) Params ¶
func (o AlertPauseOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordListOptions ¶
type AlertRecordListOptions struct { options.BaseListOptions AlertId string `help:"id of alert"` Level string `help:"alert level"` State string `help:"alert state"` ResTypes []string `json:"res_types"` ResName string `json:"res_name"` Alerting bool `json:"alerting"` }
func (*AlertRecordListOptions) Params ¶
func (o *AlertRecordListOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordShieldCreateOptions ¶
type AlertRecordShieldCreateOptions struct { apis.ScopedResourceCreateInput AlertId string `json:"alert_id" help:"common alert Id" required:"true"` ResType string `json:"res_type" help:"resource tyge" choices:"host|guest|redis|oss|rds|cloudaccount"` ResName string `json:"res_name" help:"resource name" required:"true"` ResId string `json:"res_id" help:"resource id" required:"true"` ShieldPeriod string `json:"shield_period" help:"shield time eg:'1m,2h'" required:"true"` }
func (*AlertRecordShieldCreateOptions) Params ¶
func (o *AlertRecordShieldCreateOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordShieldDeleteOptions ¶
type AlertRecordShieldDeleteOptions struct {
ID string `json:"-"`
}
func (*AlertRecordShieldDeleteOptions) GetId ¶
func (o *AlertRecordShieldDeleteOptions) GetId() string
func (*AlertRecordShieldDeleteOptions) Params ¶
func (o *AlertRecordShieldDeleteOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordShieldListOptions ¶
type AlertRecordShieldListOptions struct { options.BaseListOptions AlertId string `help:"id of alert"` Alertname string `json:"alertname"` ResName string `json:"res_name"` ResTypes []string `json:"res_types"` }
func (*AlertRecordShieldListOptions) Params ¶
func (o *AlertRecordShieldListOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordShieldShowOptions ¶
type AlertRecordShieldShowOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*AlertRecordShieldShowOptions) GetId ¶
func (o *AlertRecordShieldShowOptions) GetId() string
func (*AlertRecordShieldShowOptions) Params ¶
func (o *AlertRecordShieldShowOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordShowOptions ¶
type AlertRecordShowOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*AlertRecordShowOptions) GetId ¶
func (o *AlertRecordShowOptions) GetId() string
func (*AlertRecordShowOptions) Params ¶
func (o *AlertRecordShowOptions) Params() (jsonutils.JSONObject, error)
type AlertRecordTotalOptions ¶
type AlertRecordTotalOptions struct { ID string `help:"total-alert" json:"-"` options.BaseListOptions }
func (*AlertRecordTotalOptions) GetId ¶
func (o *AlertRecordTotalOptions) GetId() string
func (*AlertRecordTotalOptions) Params ¶
func (o *AlertRecordTotalOptions) Params() (jsonutils.JSONObject, error)
type AlertResourceAlertListOptions ¶
type AlertResourceAlertListOptions struct { options.BaseListOptions Resource string `help:"ID or name of alert resource"` Alert string `help:"ID or name of alert"` }
func (AlertResourceAlertListOptions) GetMasterOpt ¶
func (o AlertResourceAlertListOptions) GetMasterOpt() string
func (AlertResourceAlertListOptions) GetSlaveOpt ¶
func (o AlertResourceAlertListOptions) GetSlaveOpt() string
func (AlertResourceAlertListOptions) Params ¶
func (o AlertResourceAlertListOptions) Params() (jsonutils.JSONObject, error)
type AlertResourceDeleteOptions ¶
type AlertResourceDeleteOptions struct {
ID []string `help:"ID of alert resource to delete"`
}
func (AlertResourceDeleteOptions) GetIds ¶
func (o AlertResourceDeleteOptions) GetIds() []string
func (AlertResourceDeleteOptions) Params ¶
func (o AlertResourceDeleteOptions) Params() (jsonutils.JSONObject, error)
type AlertResourceListOptions ¶
type AlertResourceListOptions struct { options.BaseListOptions Type string `json:"type"` }
func (AlertResourceListOptions) Params ¶
func (o AlertResourceListOptions) Params() (jsonutils.JSONObject, error)
type AlertResourceShowOptions ¶
type AlertResourceShowOptions struct {
ID string `help:"ID or name of the alert resource" json:"-"`
}
func (AlertResourceShowOptions) GetId ¶
func (o AlertResourceShowOptions) GetId() string
func (AlertResourceShowOptions) Params ¶
func (o AlertResourceShowOptions) Params() (jsonutils.JSONObject, error)
type AlertShowOptions ¶
type AlertShowOptions struct {
ID string `help:"ID or name of the alert" json:"-"`
}
func (AlertShowOptions) GetId ¶
func (o AlertShowOptions) GetId() string
func (AlertShowOptions) Params ¶
func (o AlertShowOptions) Params() (jsonutils.JSONObject, error)
type AlertStatesOptions ¶
type AlertTestRunOptions ¶
type AlertUpdateOptions ¶
type AlertUpdateOptions struct { ID string `help:"ID or name of the alert"` Name string `help:"Update alert name"` Frequency string `help:"Alert execute frequency, e.g. '5m', '1h'"` AlertStatesOptions }
func (AlertUpdateOptions) GetId ¶
func (opt AlertUpdateOptions) GetId() string
func (AlertUpdateOptions) Params ¶
func (opt AlertUpdateOptions) Params() (jsonutils.JSONObject, error)
type CommonAlertConditionOptions ¶
type CommonAlertConditionOptions struct {
AlertConditionOptions
}
func (CommonAlertConditionOptions) Params ¶
func (o CommonAlertConditionOptions) Params(conf *monitor2.AlertConfig) (*monitor2.AlertCondition, error)
type CommonAlertCreateOptions ¶
type CommonAlertCreateOptions struct { apis.Meta monitor.CommonAlertCreateBaseInput CommonAlertConditionOptions AlertStatesOptions NAME string `help:"Name of the alert"` // 报警级别 Level string `json:"level"` }
func (*CommonAlertCreateOptions) Params ¶
func (o *CommonAlertCreateOptions) Params() (jsonutils.JSONObject, error)
type CommonAlertDeleteOptions ¶
type CommonAlertDeleteOptions struct { ID []string `help:"ID of alart"` Force bool `help:"force to delete alert"` }
func (*CommonAlertDeleteOptions) GetIds ¶
func (o *CommonAlertDeleteOptions) GetIds() []string
func (*CommonAlertDeleteOptions) Params ¶
func (o *CommonAlertDeleteOptions) Params() (jsonutils.JSONObject, error)
type CommonAlertListOptions ¶
type CommonAlertListOptions struct { options.BaseListOptions // 报警类型 AlertType string `help:"common alert type" choices:"normal|system"` Level string `help:"common alert notify level" choices:"normal|important|fatal"` }
func (*CommonAlertListOptions) Params ¶
func (o *CommonAlertListOptions) Params() (jsonutils.JSONObject, error)
type CommonAlertShowOptions ¶
type CommonAlertShowOptions struct {
ID string `help:"ID of alart " json:"-"`
}
func (*CommonAlertShowOptions) GetId ¶
func (o *CommonAlertShowOptions) GetId() string
func (*CommonAlertShowOptions) Params ¶
func (o *CommonAlertShowOptions) Params() (jsonutils.JSONObject, error)
type CommonAlertUpdateOptions ¶
type CommonAlertUpdateOptions struct { ID string `help:"ID of alart " json:"-"` Period string `help:"exec period of alert" json:"period"` Comparator string `help:"Alarm policy threshold comparison method" json:"comparator" ` Threshold string `help:"Alarm policy threshold" json:"threshold"` }
func (*CommonAlertUpdateOptions) GetId ¶
func (o *CommonAlertUpdateOptions) GetId() string
func (*CommonAlertUpdateOptions) Params ¶
func (o *CommonAlertUpdateOptions) Params() (jsonutils.JSONObject, error)
type DataSourceCreateOptions ¶
type DataSourceCreateOptions struct {
NAME string
}
type DataSourceDeleteOptions ¶
type DataSourceDeleteOptions struct {
ID string `json:"-"`
}
type DataSourceListOptions ¶
type DataSourceListOptions struct {
options.BaseListOptions
}
type InfluxdbShemaListOptions ¶
type InfluxdbShemaListOptions struct { }
type InfluxdbShemaShowOptions ¶
type InfluxdbShemaShowOptions struct { ID string `help:"attribute of the inluxdb" choices:"databases|measurements|metric-measurement"` Database string `help:"influxdb database"` Measurement string `help:"influxdb table"` }
func (InfluxdbShemaShowOptions) Params ¶
func (opt InfluxdbShemaShowOptions) Params() (jsonutils.JSONObject, error)
type MetricDeleteOptions ¶
type MetricDeleteOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*MetricDeleteOptions) GetId ¶
func (o *MetricDeleteOptions) GetId() string
func (*MetricDeleteOptions) Params ¶
func (o *MetricDeleteOptions) Params() (jsonutils.JSONObject, error)
type MetricFieldDeleteOptions ¶
type MetricFieldDeleteOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*MetricFieldDeleteOptions) GetId ¶
func (o *MetricFieldDeleteOptions) GetId() string
func (*MetricFieldDeleteOptions) Params ¶
func (o *MetricFieldDeleteOptions) Params() (jsonutils.JSONObject, error)
type MetricFieldShowOptions ¶
type MetricFieldShowOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*MetricFieldShowOptions) GetId ¶
func (o *MetricFieldShowOptions) GetId() string
func (*MetricFieldShowOptions) Params ¶
func (o *MetricFieldShowOptions) Params() (jsonutils.JSONObject, error)
type MetricFieldUpdateOptions ¶
type MetricFieldUpdateOptions struct { ID string `help:"ID of Metric " required:"true" positional:"true"` DisplayName string `help:"The name of the field customization" required:"true"` Name string `help:"Name of Field" required:"true"` Unit string `help:"Unit of Field" choices:"%|bps|Mbps|Bps|cps|count|ms|byte" required:"true"` }
func (*MetricFieldUpdateOptions) GetId ¶
func (o *MetricFieldUpdateOptions) GetId() string
func (*MetricFieldUpdateOptions) Params ¶
func (o *MetricFieldUpdateOptions) Params() (jsonutils.JSONObject, error)
type MetricShowOptions ¶
type MetricShowOptions struct {
ID string `help:"ID of Metric " json:"-"`
}
func (*MetricShowOptions) GetId ¶
func (o *MetricShowOptions) GetId() string
func (*MetricShowOptions) Params ¶
func (o *MetricShowOptions) Params() (jsonutils.JSONObject, error)
type MetricUpdateOptions ¶
type MetricUpdateOptions struct { ID string `help:"ID of Metric " required:"true" positional:"true"` ResType string `help:"Resource properties of measurement e.g. guest/host/redis/oss/rds" required:"true"` MeasurementDisplayName string `help:"The name of the measurement customization" required:"true"` FieldName string `help:"Name of Field" required:"true"` FieldDisplayName string `help:"The name of the field customization" required:"true"` Unit string `help:"Unit of Field" choices:"%|bps|Mbps|Bps|cps|count|ms|byte" required:"true"` }
func (*MetricUpdateOptions) GetId ¶
func (o *MetricUpdateOptions) GetId() string
func (*MetricUpdateOptions) Params ¶
func (o *MetricUpdateOptions) Params() (jsonutils.JSONObject, error)
type MigrationAlertCreateOptions ¶
type MigrationAlertCreateOptions struct { NAME string `help:"Name of the migration alert"` METRIC string `help:"Metric type" choices:"cpu.usage_active.gt|mem.available.lt"` THRESHOLD float64 `help:"Metric threshold"` Period string `help:"Period of execution, e.g. '5m', '1h'" default:"5m"` SourceHost []string `help:"Source hosts' id or name"` SourceGuest []string `help:"Source guests's id or name"` TargetHost []string `help:"Target hosts' id or name"` }
func (*MigrationAlertCreateOptions) Params ¶
func (o *MigrationAlertCreateOptions) Params() (jsonutils.JSONObject, error)
type MigrationAlertListOptions ¶
type MigrationAlertListOptions struct { options.BaseListOptions MetricType string `help:"Migration alert metric type" choices:"cpu.usage_active|mem.available"` }
func (*MigrationAlertListOptions) Params ¶
func (o *MigrationAlertListOptions) Params() (jsonutils.JSONObject, error)
type MigrationAlertShowOptions ¶
type MigrationAlertShowOptions struct {
ID string `help:"ID of alart " json:"-"`
}
func (*MigrationAlertShowOptions) GetId ¶
func (o *MigrationAlertShowOptions) GetId() string
func (*MigrationAlertShowOptions) Params ¶
func (o *MigrationAlertShowOptions) Params() (jsonutils.JSONObject, error)
type MonitorMetricFieldListOptions ¶
type MonitorMetricFieldListOptions struct { options.BaseListOptions Names []string `help:"name of field"` Unit string `help:"Unit of Field " choices:"%|bps|Mbps|Bps|cps|count|ms|byte"` DisplayName string `help:"The name of the field customization"` }
func (*MonitorMetricFieldListOptions) Params ¶
func (o *MonitorMetricFieldListOptions) Params() (jsonutils.JSONObject, error)
type MonitorMetricListOptions ¶
type MonitorMetricListOptions struct { options.BaseListOptions MeasurementName []string `help:"name of Measurement"` ResType string `help:"Resource properties of measurement e.g. guest/host/redis/oss/rds"` MeasurementDisplayName string `help:"The name of the measurement customization"` FieldName []string `help:"Name of Field"` Unit string `help:"Unit of Field " choices:"%|bps|Mbps|Bps|cps|count|ms|byte"` FieldDisplayName string `help:"The name of the field customization"` }
func (*MonitorMetricListOptions) Params ¶
func (o *MonitorMetricListOptions) Params() (jsonutils.JSONObject, error)
type MonitorResourceAlertListOptions ¶
type MonitorResourceAlertListOptions struct { options.BaseListOptions MonitorResourceId string `help:"ID of monitor resource" json:"monitor_resource_id"` AlertId string `help:"ID of alert" json:"alert_id"` Alerting bool `help:"search alerting resource" json:"alerting"` SendState string `json:"send_state"` }
func (*MonitorResourceAlertListOptions) GetMasterOpt ¶
func (o *MonitorResourceAlertListOptions) GetMasterOpt() string
func (*MonitorResourceAlertListOptions) GetSlaveOpt ¶
func (o *MonitorResourceAlertListOptions) GetSlaveOpt() string
func (*MonitorResourceAlertListOptions) Params ¶
func (o *MonitorResourceAlertListOptions) Params() (jsonutils.JSONObject, error)
type MonitorResourceJointAlertOptions ¶
type MonitorResourceJointAlertOptions struct { }
func (*MonitorResourceJointAlertOptions) GetId ¶
func (o *MonitorResourceJointAlertOptions) GetId() string
func (*MonitorResourceJointAlertOptions) Params ¶
func (o *MonitorResourceJointAlertOptions) Params() (jsonutils.JSONObject, error)
type NotificationCreateOptions ¶
type NotificationCreateOptions struct { NAME string `help:"notification config name"` NotificationFields }
func (NotificationCreateOptions) Params ¶
func (opt NotificationCreateOptions) Params() (*monitor.NotificationCreateInput, error)
type NotificationDeleteOptions ¶
type NotificationDeleteOptions struct {
ID []string `help:"ID or name of the alert notification config" json:"-"`
}
type NotificationDingDingCreateOptions ¶
type NotificationDingDingCreateOptions struct { NotificationCreateOptions URL string `help:"dingding webhook url"` MsgType string `help:"message type" choices:"markdown|actionCard" default:"markdown"` }
func (NotificationDingDingCreateOptions) Params ¶
func (opt NotificationDingDingCreateOptions) Params() (*monitor.NotificationCreateInput, error)
type NotificationFeishuCreateOptions ¶
type NotificationFeishuCreateOptions struct { NotificationCreateOptions APPID string `help:"feishu robot appId"` APPSECRET string `help:"feishu robt appSecret"` }
func (NotificationFeishuCreateOptions) Params ¶
func (opt NotificationFeishuCreateOptions) Params() (*monitor.NotificationCreateInput, error)
type NotificationFields ¶
type NotificationListOptions ¶
type NotificationListOptions struct {
options.BaseListOptions
}
type NotificationShowOptions ¶
type NotificationShowOptions struct {
ID string `help:"ID or name of the alert notification config" json:"-"`
}
type NotificationUpdateOptions ¶
type NotificationUpdateOptions struct { NotificationFields ID string `help:"ID or name of the alert notification config" json:"-"` DisableDefault *bool `help:"disable as default notification" json:"-"` ResolveMessage *bool `help:"enable notify recover message" json:"-"` DisableSendReminder *bool `help:"disable send reminder" json:"-"` }
func (NotificationUpdateOptions) Params ¶
func (opt NotificationUpdateOptions) Params() (*monitor.NotificationUpdateInput, error)
type SimpleQueryOptions ¶
type SimpleQueryOptions struct { Id string `json:"id"` Database string `json:"database"` MetricName string `json:"metric_name"` StartTime string `json:"start_time"` EndTime string `json:"end_time"` Tags []string `json:"tags"` }
func (*SimpleQueryOptions) GetId ¶
func (o *SimpleQueryOptions) GetId() string
func (*SimpleQueryOptions) Params ¶
func (o *SimpleQueryOptions) Params() (jsonutils.JSONObject, error)
Click to show internal directories.
Click to hide internal directories.