You can call this operation to query the execution history of an SQL statement in a specified period based on an SQL ID.
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. | t2mr3oae0**** |
StartTime | string | Yes | The start time of the time range for querying the SQL execution history. | 2021-06-13T15:40:43Z |
EndTime | string | Yes | The end time of the time range for querying the SQL execution history. | 2021-09-13T15:40:43Z |
SQLId | string | Yes | SQLID. | 8D6E84****0B8FB1823D199E2CA1**** |
PageNumber | integer | No | The page number. | 1 |
PageSize | integer | No | The number of entries returned on each page. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"SQLHistoryList": {
"List": [
{
"ExecPerSecond": 163,
"MaxCpuTime": 257.967,
"BlockCacheHit": 14,
"DecodeTime": 0,
"RemotePlans": 0,
"RPCCount": 0,
"NetWaitTime": 0,
"DiskRead": 0,
"NodeIp": "i-bp18qljorblo8es*****",
"ConcurrencyWaitTime": 0,
"DbName": "testdb",
"MemstoreReadRowCount": 527,
"AppWaitTime": 0,
"ElapsedTime": 76.382,
"MissPlans": 0,
"AffectedRows": 0,
"ScheduleTime": 0,
"Event": "mysql response wait client",
"TotalWaitTime": 10.966,
"ReturnRows": 1,
"ExecuteTime": 61.044,
"UserName": "tester",
"Executions": 89403,
"GetPlanTime": 0.052,
"CpuTime": 50.13,
"MaxElapsedTime": 260.44,
"BlockIndexCacheHit": 4,
"EndTimeUTCString": "2021-12-28T02:08:18Z",
"EndTime": 0,
"RetryCount": 0,
"ClientIp": "1*2.***.1*3.***",
"BloomFilterCacheHit": 0,
"IOWaitTime": 0,
"FailTimes": 0,
"QueueTime": 15.275,
"RowCacheHit": 0,
"LogicalRead": 19,
"SsstoreReadRowCount": 43086
}
],
"Count": 1
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
2014 | InternalError | The request processing has failed due to some unknown error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2022-01-17 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|