修改一个告警策略¶
POST /api/v1/monitor/group/{monitor_uuid}/modify
概述¶
根据monitor_uuid
修改指定的告警策略配置信息
路由参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
monitor_uuid | string | Y | 告警策略UUID |
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
name | string | 监控器名字 允许为空: False |
|
alertOpt | json | 告警设置 允许为空: False |
|
alertOpt.silentTimeout | integer | 告警设置 允许为空: False |
|
alertOpt.alertTarget | array | 触发动作 允许为空: False |
参数补充说明¶
响应¶
{
"code": 200,
"content": {
"alertOpt": {
"alertTarget": [],
"silentTimeout": 0
},
"config": {},
"createAt": 1641870634,
"creator": "acnt_63c77346766c11ebb7caf2b2c21faf74",
"deleteAt": -1,
"id": 769,
"name": "修改后的名称",
"status": 0,
"type": "aliyun_rds_mysql",
"updateAt": 1642593872.2646232,
"updator": "wsak_0f70ae95544143549f6ac2cb56ee0037",
"uuid": "monitor_84cbb7c18f964771b8153fbca1013615",
"workspaceUUID": "wksp_2dc431d6693711eb8ff97aeee04b54af"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-DAEC1D96-1053-4CBC-8997-398635FE1884"
}