查询资源概览信息
更新时间:2021-08-04
接口描述
本接口用于用户查看当前资源使用量的汇总信息,包括service、deployment、pod以及CPU、内存、带宽的相关信息。
请求结构
Plain Text
1GET /v1/overview/summary HTTP/1.1
2Host: bec.baidubce.com
3Content-Type: application/json; charset=utf-8
4Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
无。
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
serviceCount | ResourceCount | service概览数量汇总 |
deploymentCount | ResourceCount | deployment概览数量汇总 |
podCount | ResourceCount | pod概览数量汇总 |
cpu | float | 当前CPU使用汇总 |
memory | float | 当前内存使用汇总 |
bandwidth | long | 当前带宽使用量汇总 |
错误码
请参照错误返回章节的内容。
请求示例
Plain Text
1GET /v1/overview/summary HTTP/1.1
2Host: bec.baidubce.com
3Content-Type: application/json; charset=utf-8
4Authorization: bce-auth-v1/318857a8f08b11e9845ca7e54775a0c2/2019-10-17T03:07:21Z/1800/host/212eef8cfe1ac94be56c4afedb9360bba621ef646c3c8288971d36801d70501a
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 08 Jul 2019 03:28:11 GMT
4x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
5X-Bce-Gateway-Region: BJ
6{
7 "serviceCount": {
8 "total": 5,
9 "runningCount": 5,
10 "failedCount": 0,
11 "closedCount": 0
12 },
13 "deploymentCount": {
14 "total": 4,
15 "runningCount": 4,
16 "failedCount": 0,
17 "closedCount": 0
18 },
19 "podCount": {
20 "total": 7,
21 "runningCount": 7,
22 "failedCount": 0,
23 "closedCount": 0
24 },
25 "cpu": 25.0,
26 "memory": 50.0,
27 "bandwidth": 0
28}
Model对象定义
ResourceCount
参数名称 | 类型 | 描述 |
---|---|---|
total | Integer | 总量 |
runningCount | Integer | 运行中数量 |
failedCount | Integer | 失败数量 |
closedCount | Integer | 关闭中数量 |