获取已部署应用的弹性扩缩容触发指标列表
接口URL:/v1/app/inst/getScaleRuleTriggerMetricList
Content-Type:text/plain
请求方式:get
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
AppDeployId | String | String | 是 | 应用部署ID,数据来源于获取已部署应用列表 |
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
无请求参数KEY/VALUE类型 |
请求示例:
/v1/app/inst/getScaleRuleTriggerMetricList?appDeployId=b3644194-afca-4e79-a453-232d6658ac06
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | Integer | Integer | 响应编码 2000 success |
message | String | String | 消息内容 |
returnObj | Array | Array | 返回数据 |
error | String | String | 调用错误时返回的错误编码 |
表returnObj
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
metricName | String | Integer | 指标名称 |
metricDesc | String | String | 触发指标描述 |
metricCalcAvg | Boolean | Boolean | 触发指标是否计算每秒均值 |
返回示例:成功
{"statusCode":2000,"message":"成功","returnObj":[{"metricName":"system_cpu","metricDesc":"应用平均CPU使用率","metricCalcAvg":false},{"metricName":"system_mem","metricDesc":"应用平均内存使用率","metricCalcAvg":false},{"metricName":"incall_qps","metricDesc":"应用提供服务平均每秒请求量","metricCalcAvg":true},{"metricName":"incall_rt","metricDesc":"应用提供服务平均响应时间(毫秒)","metricCalcAvg":true}]}
返回示例:失败
{"statusCode":191251,"error":"MSAP_1251","message":"非法的应用部署ID"}