查看彈性 IP 實時監控數據
更新時間 2023-07-19 13:57:28
最近更新時間: 2023-07-19 13:57:28
分享文章
接口功能介紹
查看彈性 IP 實時監控數據。
接口約束
無。
URI
POST /v4/eip/query-realtime-monitor
請求參數
請求Body參數
| 參數 | 參數類型 | 是否必填 | 說明 | 示例 |
|---|---|---|---|---|
| regionID | String | 是 | 資源池 ID | |
| deviceIDs | Array of String | 否 | 負載均衡的 IP 地址列表,僅支持 IP 地址 | |
| pageNumber | Integer | 否 | 列表的頁碼,默認值為 1 | 1 |
| pageNo | Integer | 否 | 列表的頁碼,默認值為 1, 推薦使用該字段, pageNumber 后續會廢棄 | 1 |
| pageSize | Integer | 否 | 每頁數據量大小,取值 1-50 |
響應參數
| 參數 | 參數類型 | 說明 | 示例 |
|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗) | 800 |
| message | String | statusCode為900時的錯誤信息; statusCode為800時為success, 英文 | success |
| description | String | statusCode為900時的錯誤信息; statusCode為800時為成功, 中文 | 成功 |
| errorCode | String | statusCode為900時為業務細分錯誤碼,三段式:product.module.code; statusCode為800時為SUCCESS | SUCCESS |
| returnObj | Object of Array | object | 返回結果 |
| totalCount | Integer | 列表條目數 | 20 |
| currentCount | Integer | 分頁查詢時每頁的行數。 | 4 |
| totalPage | Integer | 總頁數 | 5 |
表 returnObj
| 參數 | 參數類型 | 示例 | 說明 |
|---|---|---|---|
| lastUpdated | String | 最近更新時間 | |
| regionID | String | 資源池 ID | |
| deviceID | String | 彈性公網 IP | |
| itemList | Object of Array | 監控項值列表 |
表 itemList
| 參數 | 參數類型 | 示例 | 說明 |
|---|---|---|---|
| ingressThroughput | String | 入吞吐量 | |
| egressThroughput | String | 出吞吐量 | |
| ingressBandwidth | String | 入帶寬峰值 | |
| egressBandwidth | String | 出帶寬峰值 | |
| samplingTime | Integer | 采樣時間 |
請求示例
POST /v4/eip/new-query-realtime-monitor
請求體body
{
"regionID": "81f7728662dd11ec810800155d307d5b"
}
響應示例
{
"statusCode": 800,
"errorCode": "SUCCESS",
"message": "success",
"description": "成功",
"returnObj": [
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.225.66",
"itemList": {
"ingressThroughput": "0",
"egressThroughput": "0",
"ingressBandwidth": "0",
"egressBandwidth": "0",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.127.151",
"itemList": {
"ingressThroughput": "46",
"egressThroughput": "46",
"ingressBandwidth": "6",
"egressBandwidth": "6",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.198.188",
"itemList": {
"ingressThroughput": "46",
"egressThroughput": "46",
"ingressBandwidth": "6",
"egressBandwidth": "6",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"fuID": "77.8.126.99",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.126.99",
"itemList": {
"ingressThroughput": "0",
"egressThroughput": "0",
"ingressBandwidth": "0",
"egressBandwidth": "0",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.81.226",
"itemList": {
"ingressThroughput": "0",
"egressThroughput": "0",
"ingressBandwidth": "0",
"egressBandwidth": "0",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.255.140",
"itemList": {
"ingressThroughput": "46",
"egressThroughput": "46",
"ingressBandwidth": "6",
"egressBandwidth": "6",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.183.110",
"itemList": {
"ingressThroughput": "46",
"egressThroughput": "46",
"ingressBandwidth": "6",
"egressBandwidth": "6",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.43.136",
"itemList": {
"ingressThroughput": "46",
"egressThroughput": "46",
"ingressBandwidth": "6",
"egressBandwidth": "6",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "77.8.92.229",
"itemList": {
"ingressThroughput": "46",
"egressThroughput": "46",
"ingressBandwidth": "6",
"egressBandwidth": "6",
"samplingTime": 1667796584
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 12:49:44",
"deviceID": "100:1:18e:200:9691:ef15:690a:b5f4",
"itemList": {
"ingressThroughput": "0",
"egressThroughput": "0",
"ingressBandwidth": "0",
"egressBandwidth": "0",
"samplingTime": 1667796584
}
}
],
"currentCount": 10,
"totalCount": 67825,
"totalPage": 6783
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 表示請求成功。 |
錯誤碼
請參考 錯誤碼說明。