You can call this API to view the SQL execution history.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the OceanBase cluster. | ob317v4uif**** |
TenantId | string | Yes | The ID of the tenant. | t4louaeei**** |
StartTime | string | Yes | The start time of querying the execution history of the SQL statement. | 2023-04-12T04:38:38Z |
EndTime | string | Yes | The end time of querying the execution history of the SQL statement. | 2023-04-12T05:38:38Z |
DbName | string | No | The name of the database. | test_db |
SqlId | string | Yes | SQL ID. | 8D6E84****0B8FB1823D199E2CA1**** |
NodeIp | string | No | The IP address of the node. | i-bp19y05uq6x********* |
AcceptLanguage | string | No | The language of the response. Valid values:
| zh-CN |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"Data": [
{
"SQLId": "8D6E84****0B8FB1823D199E2CA1****",
"DbName": "test_db",
"AvgAffectedRows": 9978.75,
"AvgBlockCacheHit": 0,
"AvgBlockIndexCacheHit": 0,
"AvgBloomFilterCacheHit": 0,
"Executions": 1,
"FailCount": 0,
"AvgRpcCount": 8,
"RemotePlans": 0,
"MissPlans": 0,
"AvgReturnRows": 0,
"AvgLogicalReads": 0,
"RetryCount": 0,
"AvgRowCacheHit": 0,
"AvgDiskReads": 0,
"AvgMemstoreReadRows": 0,
"AvgSsstoreReadRows": 0,
"AvgApplicationWaitTime": 0,
"AvgElapsedTime": 1876.78,
"AvgExecuteTime": 1895.7,
"AvgQueueTime": 0.01,
"AvgConcurrencyWaitTime": 0,
"AvgCpuTime": 1875.34,
"AvgDecodeTime": 0,
"AvgNetWaitTime": 0,
"AvgUserIoWaitTime": 0,
"AvgGetPlanTime": 0,
"MaxElapsedTime": 13643.3,
"SumWaitTime": 9421.73,
"AvgScheduleTime": 0,
"MaxCpuTime": 13641.9,
"SumElapsedTime": 11452126.36,
"Timestamp": "2023-04-12T04:46:38Z",
"Server": "i-bp1db1****8uemejio",
"UserName": "test_user",
"AvgPartitionCount": 1,
"FailPercentage": 0,
"RetCode4012Count": 0,
"RetCode4013Count": 0,
"RetCode5001Count": 0,
"RetCode5024Count": 0,
"RetCode5167Count": 0,
"RetCode5217Count": 0,
"RetCode6002Count": 0,
"AvgWaitTime": 1442.49,
"AvgWaitCount": 0,
"LocalPlanPercentage": 0,
"RemotePlanPercentage": 0,
"DistPlanPercentage": 100,
"AvgNetTime": 8,
"AvgExecutorRpcCount": 0,
"MissPlanPercentage": 0,
"TableScanPercentage": 0,
"StrongConsistencyPercentage": 100,
"WeakConsistencyPercentage": 0,
"MaxAffectedRows": 10000,
"MaxReturnRows": 0,
"MaxWaitTime": 3.4,
"MaxApplicationWaitTime": 0,
"MaxConcurrencyWaitTime": 0,
"MaxUserIoWaitTime": 0,
"MaxDiskReads": 0,
"AvgExpectedWorkerCount": 3,
"AvgUsedWorkerCount": 3,
"SumLogicalReads": 0,
"ExecPs": 0.31
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2024-02-02 | The response structure of the API has changed | see changesets | ||||
| ||||||
2023-08-21 | The request parameters of the API has changed | see changesets | ||||
|