You can call this API to view the sample data of the execution details of the slow queries.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | No | The instance ID. | ob317v4uif**** |
TenantId | string | No | The tenant ID. | t4louaeei**** |
StartTime | string | Yes | The start time of querying the slow query execution. The value must be UTC time in the format of YYYY-MM-DDThh:mm:ssZ. | 2023-04-12T04:38:38Z |
EndTime | string | Yes | The end time of querying the slow query execution. The value must be UTC time in the format of YYYY-MM-DDThh:mm:ssZ. | 2023-04-12T05:38:38Z |
DbName | string | Yes | The database name. | test_db |
SqlId | string | Yes | SQL ID. | 8D6E84****0B8FB1823D199E2CA1**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"Data": [
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"TraceId": "YB42C****-0005E303D1****-0-0",
"RequestTime": "2023-04-12T04:46:38Z",
"Server": "i-bp1db1****8uemejio",
"ClientIp": "i-bp1db****38uemejio",
"ClientPort": "4****",
"DbName": "test_db",
"UserName": "test_user",
"SqlType": "select",
"PlanId": 0,
"AffectedRows": 10000,
"ReturnRows": 0,
"PartitionCount": 1,
"RetCode": 0,
"WaitEvent": "none",
"WaitTime": 0,
"WaitCount": 0,
"RpcCount": 8,
"PlanType": "LOCAL",
"Inner": false,
"ExecutorRpc": 0,
"HitPlan": 0,
"ElapsedTime": 2182.66,
"CpuTime": 3377.57,
"NetTime": 0,
"NetWaitTime": 0,
"QueueTime": 0.02,
"DecodeTime": 0,
"GetPlanTime": 0.19,
"ExecuteTime": 8262.01,
"ApplicationWaitTime": 0,
"ConcurrencyWaitTime": 0,
"UserIoWaitTime": 0,
"ScheduleTime": 0,
"RowCacheHit": 498,
"BloomFilterCacheHit": 0,
"BlockCacheHit": 99279,
"BlockIndexCacheHit": 142514,
"DiskReads": 96972,
"RetryCount": 0,
"TableScan": 0,
"ConsistencyLevel": "3",
"MemstoreReadRows": 0,
"ExpectedWorkerCount": 0,
"UsedWorkerCount": 0,
"SsstoreReadRows": 986190,
"ObServerId": 2,
"ObUserId": 100010,
"ObDbId": 0,
"Statement": "select a from b",
"TransHash": "1219****927****73791"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2024-04-15 | The request parameters of the API has changed. The response structure of the API has changed | see changesets | ||||||
| ||||||||
2023-12-11 | The response structure of the API has changed | see changesets | ||||||
| ||||||||
2023-10-30 | The response structure of the API has changed | see changesets | ||||||
|