接口功能介绍
查看负载均衡实时监控。
接口约束
URI
POST /v4/elb/query-realtime-monitor
请求参数
请求Body参数
参数 | 参数类型 | 是否必填 | 说明 | 示例 |
---|---|---|---|---|
regionID | String | 是 | 资源池 ID | |
deviceIDs | Array of String | 否 | 负载均衡 ID 列表 | |
pageNumber | Integer | 否 | 列表的页码,默认值为 1 | 1 |
pageNo | Integer | 否 | 列表的页码,默认值为 1, 推荐使用该字段, pageNumber 后续会废弃 | 1 |
pageSize | Integer | 否 | 每页数据量大小,取值 1-50 | 10 |
响应参数
参数 | 参数类型 | 说明 | 示例 |
---|---|---|---|
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 | Array of Objects | 返回结果 | 见下表 |
totalCount | Integer | 列表条目数 | 20 |
currentCount | Integer | 分页查询时每页的行数。 | 4 |
totalPage | Integer | 总页数 | 5 |
表 returnObj
参数 | 参数类型 | 说明 | 示例 |
---|---|---|---|
lastUpdated | String | 最近更新时间 | |
regionID | String | 资源池 ID | |
deviceID | String | 弹性公网 IP | |
itemList | Object of Array | 监控项值列表 |
表 itemList
参数 | 参数类型 | 说明 | 示例 |
---|---|---|---|
lbReqRate | String | 请求频率 | |
lbLbin | String | 出吞吐量 | |
lbLbout | String | 入带宽峰值 | |
lbHrspOther | String | HTTP 其它状态码统计数量 | |
lbHrsp2xx | String | HTTP 2xx 状态码统计数量 | |
lbHrsp3xx | String | HTTP 3xx 状态码统计数量 | |
lbHrsp4xx | String | HTTP 4xx 状态码统计数量 | |
lbHrsp5xx | String | HTTP 5xx 状态码统计数量 | |
lbNewcreate | String | HTTP 新创建的链接数 | |
lbScur | String | HTTP | |
lbInpkts | String | 出带宽峰值 | |
lbOutpkts | String | 出带宽峰值 | |
lbActconn | String | HTTP 活跃的链接数 | |
samplingTime | Integer | 采样时间 |
请求示例
POST /openapi/v4/elb/query-realtime-monitor
请求体body
{
"regionID": "81f7728662dd11ec810800155d307d5b"
}
响应示例
{
"statusCode": 800,
"errorCode": "SUCCESS",
"message": "success",
"description": "成功",
"returnObj": [
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-1tep13ibjz",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-m20frmq6dc",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-vk0ypojk90",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-6f8q3jqui9",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-ec93ou3dk9",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-52lsx1dhrl",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-gysnp7cii6",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-yde9p5789b",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-2k06w0txzf",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
},
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"lastUpdated": "2022-11-07 13:15:57",
"deviceID": "lb-8ls7azmdt0",
"itemList": {
"samplingTime": 1667798157,
"lbReqRate": -1,
"lbLbin": "0",
"lbLbout": "0",
"lbHrspOther": -1,
"lbHrsp2xx": -1,
"lbHrsp3xx": -1,
"lbHrsp4xx": -1,
"lbHrsp5xx": -1,
"lbNewcreate": "0",
"lbScur": "0",
"lbInpkts": "0",
"lbOutpkts": "0",
"lbActconn": "0"
}
}
],
"currentCount": 10,
"totalCount": 5411,
"totalPage": 542
}
状态码
状态码 | 描述 |
---|---|
200 | 表示请求成功。 |
错误码
请参考 错误码说明。