You can call this operation to query the execution history of an SQL statement by SQL ID that is determined as a slow SQL statement during a specified period of time.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TenantId | string | Yes | The ID of the tenant. | t384tolsj**** |
StartTime | string | Yes | The start time of the time range for querying the execution history of the slow SQL statement. | 2021-12-14T02:34:49Z |
EndTime | string | Yes | The end time of the time range for querying the execution history of the slow SQL statement. | 2021-12-14T08:34:49Z |
SQLId | string | Yes | The SQL ID, which uniquely identifies an SQL statement. | 8D6E84735C0****1823D199E2CA1**** |
PageNumber | integer | No | The number of the page to return.
| 1 |
PageSize | integer | No | The number of rows to return on each page.
| 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
"SlowSQLHistoryList": {
"List": [
{
"SqlId": "8D6E84****0B8FB1823D199E2CA1****",
"SqlType": "1",
"TenantName": "pay_online",
"UserName": "tester",
"ClientIp": "1*2.***.1*3.***",
"DbName": "testdb",
"Event": "mysql response wait client",
"NodeIp": "i-bp18qljorblo8es*****",
"AffectedRows": 0,
"BlockCacheHit": 14,
"BlockIndexCacheHit": 4,
"BloomFilterCacheHit": 0,
"Executions": 89403,
"FailTimes": 0,
"RPCCount": 0,
"RemotePlans": 0,
"MissPlans": 0,
"ReturnRows": 1,
"LogicalRead": 19,
"RetryCount": 0,
"RowCacheHit": 0,
"DiskRead": 0,
"MemstoreReadRowCount": 527,
"SsstoreReadRowCount": 43086,
"ExecPerSecond": 163,
"AppWaitTime": 0,
"ElapsedTime": 76.382,
"ExecuteTime": 61.044,
"QueueTime": 15.275,
"ConcurrencyWaitTime": 0,
"CpuTime": 50.13,
"DecodeTime": 0,
"NetWaitTime": 0,
"IOWaitTime": 0,
"GetPlanTime": 0.052,
"MaxElapsedTime": 260.044,
"TotalWaitTime": 10.966,
"ScheduleTime": 0,
"MaxCpuTime": 257.967,
"EndTimeUTCString": "2021-12-28T02:08:18Z"
}
],
"Count": 1
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history