查询事务列表
更新时间:2023-09-26
接口说明
使用此接口可以查询实例的会话列表。
请求URI
Plain Text
1GET /v{version}/instance/{instanceId}/performance/transaction HTTP 1.1
2HOST: rds.bj.baidubce.com
3Content-Type: application/json
4Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 参数类型 | 是否必须 | 参数位置 | 示例值 | 描述 |
---|---|---|---|---|---|
version | Integer | 是 | URL参数 | 1 | API版本号 |
instanceId | String | 是 | URL参数 | rds-uXaqeGet | 实例ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
datetime | String | 快照时间 |
innodbTrxList | List<InnodbTransaction> | 事务列表 |
InnodbTransaction
参数名称 | 类型 | 描述 |
---|---|---|
trxTablesLocked | Integer | 表锁ID |
trxTablesInUse | Integer | 事务列表 |
trxQuery | String | 事务查询 |
trxStarted | String | 事务开始时间 |
trxRequestedLockId | String | 事务请求锁ID |
trxId | String | 事务ID |
trxRowsLocked | Integer | 行锁ID |
trxWaitStarted | String | 事务等待开始时间 |
trxState | String | 事务状态 |
trxMysqlThreadId | Long | mysql现场ID |
请求示例
Plain Text
1GET /v1/instance/rds-uXaqeGet/performance/transaction HTTP 1.1
2HOST: rds.bj.baidubce.com
3Content-Type:application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2023-08-09T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
3Content-Type:application/json
4{
5 "datetime" : "2022-01-17 11:52:39",
6 "innodbTrxList" : [ {
7 "trxRequestedLockId" : "trxRequestedLockId",
8 "trxStarted" : "2022-01-17 10:56:41",
9 "trxMysqlThreadId" : 147933,
10 "trxRowsLocked" : 11,
11 "trxWaitStarted" : "trxWaitStarted",
12 "trxState" : "RUNNING",
13 "trxTablesInUse" : 0,
14 "trxId" : "3452",
15 "trxQuery" : "trxQuery",
16 "trxTablesLocked" : 1
17 }, {
18 "trxRequestedLockId" : "trxRequestedLockId",
19 "trxStarted" : "2022-01-17 10:56:41",
20 "trxMysqlThreadId" : 147933,
21 "trxRowsLocked" : 11,
22 "trxWaitStarted" : "trxWaitStarted",
23 "trxState" : "RUNNING",
24 "trxTablesInUse" : 0,
25 "trxId" : "3452",
26 "trxQuery" : "trxQuery",
27 "trxTablesLocked" : 1
28 } ]
29}
30}