日志服务
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
AlarmNotifyGroupId | String | 是 | p**** | 告警通知组的 ID。 |
AlarmNotifyGroupName | String | 否 | test-alarm-nofify | |
NotifyType | Array of String | 否 | ["Recovery", "Trigger"] | 告警通知的类型。支持设置为:
说明
|
Receivers | 否 | [ { "ReceiverType": "User", "ReceiverNames": ["******"], "ReceiverChannels": ["Sms"], "StartTime": "00:00:00", "EndTime": "23:59:59" } ] | 接收告警的 IAM 用户列表。可设置 1~10 个 IAM 用户。 说明
| |
NoticeRules | 否 | / | 告警通知组的相关配置。 说明
|
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
EndTime | String | 是 | 23:59:59 | 可接收告警通知的结束时间。24 小时制,格式为 HH:mm:ss,时间范围为 00:00:00~23:59:59。 StartTime 不能大于 EndTime。 |
StartTime | String | 是 | 00:00:00 | 可接收告警通知的开始时间。24 小时制,格式为HH:mm:ss,时间范围为 00:00:00~23:59:59。 StartTime 不能大于 EndTime。 |
ReceiverType | String | 是 | User | 接收对象类型。可设置为:
|
ReceiverNames | Array of String | 是 | ["Andy"] | IAM 用户或用户组名称。 |
ReceiverChannels | Array of String | 是 | ["Sms"] | 通知接收渠道。支持设置一个或多个渠道。可设置为:
说明
|
GeneralWebhookUrl | String | 否 | https://xxxx.feushu.com/xxxx | 自定义接口回调地址。 |
GeneralWebhookBody | String | 否 | / | 自定义 WebHook 请求体。建议根据对应服务的回调接口格式要求设置请求体内容。 |
AlarmWebhookAtUsers | Array of String | 否 | user1 | 通过 Webhook 集成配置发送通知到飞书、钉钉或企业微信时,需要提醒的用户名。 说明
|
AlarmWebhookIsAtAll | Boolean | 否 | true | 通过 Webhook 集成配置发送通知到飞书、钉钉或企业微信时,是否提醒所有人。 true:提醒所有人。 false:不提醒所有人。 说明
|
AlarmWebhookAtGroups | Array of String | 否 | group1 | 通过 Webhook 集成配置发送通知到飞书、钉钉或企业微信时,需要提醒的用户组名称。 说明 配置了以 AlarmWebhook 开头的参数时,表示您选择使用 Webhook 集成配置方式管理 Webhook 地址,此时请将 GeneralWebhook开头的参数留空,无需配置。 |
GeneralWebhookMethod | String | 否 | POST | 自定义接口回调方法,仅支持设置为 POST 或 PUT。 |
GeneralWebhookHeaders | 否 | / | 自定义接口回调请求头。 | |
AlarmContentTemplateId | String | 否 | al**** | 告警内容模版 ID。 |
AlarmWebhookIntegrationId | String | 否 | 1f4a9e21**** | 告警 Webhook 集成配置的 ID。 说明 配置了以 AlarmWebhook 开头的参数时,表示您选择使用 Webhook 集成配置方式管理 Webhook 地址,此时请将 GeneralWebhook开头的参数留空,无需配置。 |
AlarmWebhookIntegrationName | String | 否 | test | 告警 Webhook 集成配置的名称。 说明 配置了以 AlarmWebhook 开头的参数时,表示您选择使用 Webhook 集成配置方式管理 Webhook 地址,此时请将 GeneralWebhook开头的参数留空,无需配置。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
key | String | 否 | Content-Type | 自定义请求头的 Key。 |
value | String | 否 | application/json | 自定义请求头的 Value。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Type | String | 否 | Operation | 当前节点类型。可选值:
|
Value | Array of String | 否 | / | 节点值。 |
Children | 否 | [ "AND"] | 子节点。 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
400 | InvalidArgument | Invalid argument key %s, value %s, please check argument. | 参数不合法。 |
400 | AlarmNoticeUserNotExist | Alarm notice user %s not exist | 告警通知用户不存在。 |
404 | AlarmNotifyGroupNotExist | AlarmNotify Group does not exist. | 告警通知组不存在。 |
409 | NotifyGroupAlreadyExist | Notify group already exist | 告警通知组已存在。 |
500 | InternalServerError | We encountered an unexpected server error . Please try again later. | 服务器内部错误。 |