获取指定实例的会话统计
更新时间:2023-08-22
接口说明
本接口用于获取指定实例的会话统计
请求结构
Plain Text
1GET /v{version}/instance/{instanceId}/smartdba/session/statistics HTTP/1.1
2HOST: rds.bj.baidubce.com
3Content-Type: application/json
4Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
instanceId | String | 是 | URL参数 | 实例ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
items | Map<String, Object> | SQL记录的列表 |
Object字段数据结构说明
参数名称 | 类型 | 描述 |
---|---|---|
activeAverageExecuteTime | Double | 活跃会话平均时长(秒) |
activeTotalCount | Long | 活动会话总数 |
activeTotalExecuteTime | Double | 活跃会话总时长(秒) |
dimensionKey | String | 会话统计密钥 |
dimensionValue | String | 会话统计值 |
totalCount | Long | 会话总数 |
请求示例
Plain Text
1GET /v1/instance/rds-xXE6pdR1/smartdba/session/statistics HTTP/1.1
2HOST: rds.bj.baidubce.com
3Content-Type: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1{
2 "property1": [
3 {
4 "activeAverageExecuteTime": 0,
5 "activeTotalCount": 0,
6 "activeTotalExecuteTime": 0,
7 "dimensionKey": "dimensionKey",
8 "dimensionValue": "dimensionValue",
9 "totalCount": 0
10 }
11 ],
12 "property2": [
13 {
14 "activeAverageExecuteTime": 0,
15 "activeTotalCount": 0,
16 "activeTotalExecuteTime": 0,
17 "dimensionKey": "dimensionKey",
18 "dimensionValue": "dimensionValue",
19 "totalCount": 0
20 }
21 ]
22}