云监控
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | ListAlertTemplates | 接口名称。当前 API 的名称为 ListAlertTemplates。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01。 |
Name | String | 否 | alert-template-demo | 使用模版名称筛选告警模版。
|
TemplateIds | Array of String | 否 | ["1354766247190******"] | 按照模版 ID 筛选告警模版。 |
Namespaces | Array of String | 否 | ["VCM_ECS"] | |
PageNumber | Integer | 否 | 1 | 分页查询参数,用于设置当前页码。默认值为 1。
|
PageSize | Integer | 否 | 30 | 分页查询参数,用于设置每页行数。默认值为 30。 |
ObjectGroupIds | Array of String | 否 | ['196349165826***'] | 对象分组 ID,支持基于对象分组 ID 列表查询。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Data | - | 告警模版详情。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Name | String | alert-template-demo | 告警模版名称。 |
Id | String | 1354766247190****** | 告警模版 ID。 |
Description | String | this is an alert template demo | 告警模版描述信息。 |
NoData | - | 无数据告警配置。 | |
CreatedAt | String | 2024-10-08T15:22:30+08:00 | 告警模版的创建时间。 |
UpdatedAt | String | 2024-10-08T15:22:30+08:00 | 告警模版的更新时间。 |
NotifyMode | String | rule | 告警发送聚合策略。
|
SilenceTime | Integer | 5 | 告警通知周期。 |
ObjectGroups | - | 告警模版绑定的对象分组和通知策略。 | |
TemplateRules | - | 告警模板中包含的告警规则,包括:告警对象、资源、指标、触发条件等。 | |
RecoveryNotify | - | 告警恢复通知。 | |
AppliedProjectName | String | default | 告警模板生成告警策略所属项目。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Enable | Boolean | true | 是否开启无数据告警。取值:
|
EvaluationCount | Integer | 10 | 无数据告警触发阈值,如果在配置的阈值周期内检测无数据上报,则会触发无数据告警。
|
Level | String | notice | 无数据告警级别。取值:
|
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
AlertMethods | Array of String | [ "Phone" ] | 告警通知方式,取值:
|
Webhook | String | https://qyapi.weixin.qq.com/xxxx | 告警回调 Webhook 地址。 |
WebhookIds | Array of String | ["18913208***4528"] | 告警回调 Webhook 回调 ID。 |
NotificationId | String | 189898***00 | |
ContactGroupIds | Array of String | 145080093687100**** | 告警联系组 ID。 |
ObjectGroupId | String | 1764547228734****** | 对象分组 ID。 |
EffectStartAt | String | 00:00 | 告警策略生效的开始时间,格式为HH:MM,例如:00:00。 |
EffectEndAt | String | 23:59 | 告警策略生效的截止时间,格式为HH:MM,例如:23:59。 说明 EffectEndAt时间必须晚于EffectStartAt时间。 |
NotifyTemplates | - | 通知模版配置。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Name | String | demo | 告警规则名称。 |
Namespace | String | VCM_ECS | |
SubNamespace | String | GPU | |
AppliedRules | - | 关联的告警策略信息。 | |
CheckInterval | Integer | 1 | 生成的告警规则的执行周期 ,由产品配置决定,单位为分钟。 |
EvaluationCount | Integer | 1 | 触发告警需要持续的周期。单位为分钟。 |
LevelConditions | - | 告警分级。 | |
ConditionOperator | String | && | 多指标判定条件。
|
MultipleConditions | Boolean | ture | 告警策略是否用多指标。
|
NoData | | | |
EvaluationInterval | Integer | 1 | 检查周期,用于实现 M 个周期 N 次告警。其中,EvaluationInterval 表示 M,EvaluationCount 表示 N。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Enable | Boolean | true | 是否开启告警恢复通知。取值:
|
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Channel | String | email | 通知渠道,取值:
|
NotifyTemplateId | String | 189828***00 | 通知模版 ID。 注意 每种通知渠道仅支持配置 1 个通知模版 ID。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Id | String | alarm_rule_demo | 告警策略 ID。 |
Name | String | 1354766247190****** | 告警策略名称。 |
ObjectId | String | 196349165826*** | 关联的对象 ID。 |
ObjectGroupId | String | 196349165826*** | 关联的对象分组 ID。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Level | String | warning | 告警通知等级,取值:
|
Conditions | - | 告警分级配置。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
MetricName | String | Instance_CpuBusy | |
Statistics | String | avg | 统计方法,取值:
说明 统计方法会应用到检测时间段内的数据上。例如,默认每次检测数据的时间跨度是 1 分钟,如果统计方法为 avg,那就是对 1 分钟内的数据取平均值。 |
ComparisonOperator | String | > | 比较符号。支持普通阈值告警: >、>=、<、<=、!=、= ,以及以下同环比告警:
|
Threshold | String | 100 | 指标阈值。
|
MetricUnit | String | Percent | 说明
|
EvaluationWindow | Integer | 1 | 统计时间窗口,即告警统计数据的周期。 |