接口功能介绍
查看弹性 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 | 表示请求成功。 |
错误码
请参考 错误码说明。