托管 Prometheus
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | CreateNotifyPolicy | 接口名称。当前 API 的名称为 CreateNotifyPolicy。 |
Version | String | 是 | 2021-03-03 | 接口版本。当前 API 的版本为 2021-03-03。 |
Name | String | 是 | test | 告警通知策略名称。 |
Description | String | 否 | 这是一段描述 | 告警通知策略描述信息。 |
Levels | 是 | - | 告警通知策略等级。 | |
ChannelNotifyTemplateIds | Array of String | 否 | ["e28ae750-bbb8-4ff4-abf4***"] | 自定义通知模板 ID。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Level | String | 是 | P0 | 告警通知策略等级,包括:P0、P1 和 P2。 |
ContactGroupIds | Array of String | 是 | ["e28ae750-bbb8-4ff4-abf4***"] | 告警通知策略的联系人组。 |
Channels | Array of String | 是 | ["Email"] | 告警通知策略的告警通知方式:
|
ResolvedChannels | Array of String | 否 | ["Email"] | 告警解除通知方式,支持以下渠道:
|
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Id | String | e28ae750-bbb8-4ff4-abf4*** | 告警通知策略 ID。 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
400 | InvalidParameter.{{parameter}} | The specified parameter {{parameter}} is invalid. | 输入不合法,如工作区名称不合法等。 |
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | 缺少必要的参数。 |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | 当前账号未订阅 VMP 服务。 |
409 | Conflict.Name | The specified name conflicts with existing {{resource}}. | 指定的名称与已有资源重复。 |