modifyAlarmConfig
描述
更新告警配置
请求方式
POST
请求地址
https://ipanti.jdcloud-api.com/v1/regions/{regionId}/instances/{instanceId}:modifyAlarmConfig
名称 |
类型 |
是否必需 |
默认值 |
描述 |
regionId |
String |
True |
|
区域 ID, 高防不区分区域, 传 cn-north-1 即可 |
instanceId |
String |
True |
|
实例 ID |
请求参数
AlarmConfigSpec
名称 |
类型 |
是否必需 |
默认值 |
描述 |
blackHoleAlarmEmailStatus |
Integer |
False |
|
黑洞告警邮件开关 0 关闭 1 开启 |
blackHoleAlarmSmsStatus |
Integer |
False |
|
黑洞告警短信开关 0 关闭 1 开启 |
blackHoleAlarmStatus |
Integer |
False |
|
黑洞告警总开关 0 关闭 1 开启 |
ddosAlarmEmailStatus |
Integer |
False |
|
DDos 攻击告警邮件开关 0 关闭 1 开启 |
ddosAlarmSmsStatus |
Integer |
False |
|
DDos 攻击告警短信开关 0 关闭 1 开启 |
ddosAlarmStatus |
Integer |
False |
|
DDos 告警总开关 0 关闭 1 开启 |
errorCodeAlarmStatus |
Integer |
False |
|
错误码告警总开关 |
errorCodeDomain |
String[ ] |
False |
|
错误码告警域名列表 |
errorCode |
Integer[ ] |
False |
|
错误码列表 |
errorCodePercent |
Integer |
False |
|
错误码触发告警比例 |
errorCodeCount |
Integer |
False |
|
错误码触发告警次数 |
返回参数
Error
Err
名称 |
类型 |
描述 |
code |
Long |
同http code |
details |
Object |
|
message |
String |
|
status |
String |
具体错误 |
Result
名称 |
类型 |
描述 |
code |
Integer |
0: 修改失败, 1: 修改成功 |
message |
String |
修改失败时给出具体原因 |
返回码