告警規則:獲取告警維度列表
更新時間 2023-07-19 11:40:58
最近更新時間: 2023-07-19 11:40:58
分享文章
接口功能介紹
獲取監控/告警服務的維度列表。
接口約束
無。
URI
GET /v4/monitor/query-alarm-dimensions
請求參數
Query參數
無。
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗),默認值:800 | 800 | |
| errorCode | String | 失敗時的錯誤代碼,參見公共錯誤碼說明 | ||
| message | String | 失敗時的錯誤描述,一般為英文描述 | Success | |
| msgDesc | String | 失敗時的錯誤描述,一般為中文描述 | 成功 | |
| returnObj | Object | 返回對象 | returnObj |
表returnObj
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| dimensions | Array of Objects | 維度列表 | dimension |
表dimension
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| dimensionName | String | 服務名 | ecs | |
| description | String | 描述 | 云主機 |
請求示例
GET /v4/monitor/query-alarm-dimensions
響應示例
{
"statusCode": 800,
"returnObj": {
"dimensions": [
{"dimensionName": "ecs", "description": "云主機"},
{"dimensionName": "evs", "description": "云硬盤"},
{"dimensionName": "netbag", "description": "云間高速"}
]
},
"errorCode": "",
"message": "Success",
"msgDesc":"成功"
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 請求成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| 其他 | 參見公共錯誤碼說明 |