接口功能介绍
查看负载均衡实时监控。
接口约束
无
URI
POST /v4/elb/query-realtime-monitor
路径参数
无
Query参数
无
请求参数
请求头header参数
无
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionID | 是 | String | 资源池 ID | ||
deviceIDs | 否 | Array of Strings | 负载均衡 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 | 返回结果 | 见下表 | returnObj |
totalCount | Integer | 列表条目数 | 20 | |
currentCount | Integer | 分页查询时每页的行数。 | 4 | |
totalPage | Integer | 总页数 | 5 | |
error | String | statusCode为900时为业务细分错误码,三段式:product.module.code; statusCode为800时为SUCCESS |
表 returnObj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
lastUpdated | String | 最近更新时间 | ||
regionID | String | 资源池 ID | ||
deviceID | String | 弹性公网 IP | ||
itemList | Array of Objects | 监控项值列表 | itemList |
表 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 | 采样时间 | 2 |
枚举参数
无
请求示例
请求url
POST /v4/elb/query-realtime-monitor
请求头header
无
请求体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
}
状态码
请参考 状态码
错误码
请参考 错误码