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