告警规则:更新v4.1 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 返回状态码(800为成功,900为失败),默认值:800 800 errorCode String 失败时的错误代码,参见公共错误码说明 message String 失败时的错误描述,一般为英文描述 Success msgDesc String 失败时的错误描述,一般为中文描述 成功 returnObj Object 返回对象 returnObj 表 returnObj 参数 参数类型 说明 示例 下级对象 success Boolean 是否成功 true 请求示例 请求url /v4.1/monitor/updatealarmrule 请求头header 无 请求体body json { "name": "告警规则更新名称", "alarmRuleID": "efb7d30cc6e45fb58b3b81ca99923184", "desc": "", "service": "ecs", "dimension": "ecs", "repeatTimes": 0, "silenceTime": 300, "notifyType": [], "contactGroupList": [], "notifyWeekdays": [0, 1, 2, 4, 5, 6], "notifyStart": "00:00:00", "notifyEnd": "23:59:59", "conditions": [{ "evaluationCount": 2, "fun": "last", "operator": "ge", "unit": "%", "value": "0", "metric": "cpuutil" }], "webhookUrl": ["www.ctyun.cn"], "resources": [{ "resource": [{ "name": "uuid", "value": "7dd744ea5a0261d3e62738f82f5fd3e1" }, { "name": "instancename", "value": "ecmaf97" }] }], "conditionType": 1, "regionID": "81f7728662dd11ec810800155d307d5b" }
来自: