创建告警策略 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 返回码:800表示成功,900表示失败 800 errorCode String 业务细分码,为product.module.code三段式码 Scaling.Group.NotFound 错误码 message String 失败时的错误描述,一般为英文描述 scaling group info not found description String 失败时的错误描述,一般为中文描述 未找到弹性伸缩组信息 returnObj Object 成功时返回的数据,参见表returnObj returnObj 表 returnObj 参数 参数类型 说明 示例 下级对象 ruleID Integer 伸缩策略ID 412 请求示例 请求头header 无 请求体body json { "regionID": "81f7728662dd11ec810800155d307d5b", "operateUnit": 1, "triggerObj": { "statistics": "max", "name": "asalarmf8d8fdf", "period": "5m", "threshold": 50, "evaluationCount": 1, "comparisonOperator": "ge", "metricName": "cpuutil" }, "cooldown": 300, "operateCount": 1, "action": 1, "groupID": 511, "name": "aspolicyxudcdcfccd" } 响应示例 json { "returnObj": { "ruleID": 412 }, "errorCode": "", "message": "SUCCESS", "description": "成功", "statusCode": 800 } 错误码 errorCode 描述 Scaling.Group.NotFound 未找到弹性伸缩组信息 Scaling.Rule.RuleNumberMoreThanLimit 伸缩组中的伸缩策略数量超过限制 Scaling.Parameter.InvalidError 请求参数错误