最近更新时间:2024.03.28 10:17:47
首次发布时间:2022.05.11 11:26:48
调用 ModifyAlarmNotifyGroup 接口修改告警通知组。
此接口的调用频率限制为 20 次/s,超出频率限制会报错 ExceedQPSLimit。
请求方法 | PUT |
---|---|
URI |
|
传输协议 | HTTPS |
参数 | 参数类型 | 是否必选 | 示例值 | 说明 |
---|---|---|---|---|
AlarmNotifyGroupId | String | 必选 | p**** | 告警通知组 ID。 |
AlarmNotifyGroupName | String | 可选 | test-alarm-nofify | 告警通知组名称。资源命名规则请参考资源命名规则。 |
NotifyType | Array of | 可选 | / | 告警通知的类型。支持设置为:
|
Receivers | Array of Receiver | 可选 | / | 接收告警的 IAM 用户列表。可设置 1~10 个 IAM 用户。详细信息请参考 Receiver。 |
无
PUT https://tls-{Region}.ivolces.com/ModifyAlarmNotifyGroup HTTP/1.1 Content-Type: application/json ... { "AlarmNotifyGroupId":"fc6*********", "AlarmNotifyGroupName": "test1", "NotifyType": ["Recovery", "Trigger"], "Receivers": [ { "ReceiverType": "User", "ReceiverNames": ["******"], "ReceiverChannels": ["Sms"], "StartTime": "00:00:00", "EndTime": "23:59:59" } ] }
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 {}
错误码(Code) | HTTP 状态码 | 错误信息(Message) | 说明 |
---|---|---|---|
InvalidArgument | 400 | Invalid argument key %s, value %s, please check argument. | 参数不合法。 |
AlarmNoticeUserNotExist | 400 | Alarm notice user %s not exist | 告警通知用户不存在。 |
AlarmNotifyGroupNotExist | 404 | AlarmNotify Group does not exist. | 告警通知组不存在。 |
NotifyGroupAlreadyExist | 409 | Notify group already exist | 告警通知组已存在。 |
InternalServerError | 500 | We encountered an unexpected server error . Please try again later. | 服务器内部错误。 |
更多信息,请参考通用错误码。