LoadBalancerMetering【获取指定资源池的实时监控】¶
获取指定负载均衡资源池的实时监控,包括:当前会话数、当前连接数和流量监控。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
resource_id | String | 负载均衡资源池ID | Yes |
Response Elements
Name | Type | Description |
---|---|---|
code | Integer | HTTP Resonpe响应状态码 |
end | Integer | 实时监控截至时间戳 |
resource_id | String | 负载均衡资源池ID |
start | Integer | 实时监控开始时间戳 |
step | String | 实时监控采集数据时间间隔 |
message | String | 执行结果信息 |
data | Array | JSON 格式的实时监控信息,包括:当前会话数、当前连接数和流量监控信息。 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "LoadBalancerMetering",
"resource_id": "143b4103-f5f5-4456-9b60-28ff891a66fa"
}
Example Response:
{
"code": 200,
"end": 1423447381000,
"resource_id": "143b4103-f5f5-4456-9b60-28ff891a66fa",
"start": 1423425781000,
"step": "5m",
"message": "Success Get Instance Metering",
"data": [
{
"data": [],
"name": "当前会话数",
"unit": "S"
},
{
"data": [],
"name": "当前连接数",
"unit": "C"
},
{
"data": [],
"name": "流量",
"unit": "B"
}
]
}