You can call this operation to query SQL execution performance data collected by the diagnostic system.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TenantId | string | Yes | The average CPU time, in ms. | t2mr3oae0**** |
StartTime | string | Yes | The maximum response time, in ms. | 2021-06-13T15:40:43Z |
EndTime | string | Yes | The SQL type. | 2021-09-13T15:40:43Z |
DbName | string | No | The number of block index cache hits. | testdb |
SearchKeyWord | string | No | The number of retries. | update |
SearchParameter | string | No | SQLID. | cputime |
SearchRule | string | No | The IP address of the client. | > |
SearchValue | string | No | The number of Bloom filter cache hits. | 0.01 |
SQLId | string | No | The I/O wait time, in ms. | 8D6E84****0B8FB1823D199E2CA1**** |
NodeIp | string | No | The number of failures. | i-bp19y05uq6xpacyqnlrc |
PageNumber | integer | No | The queuing time, in ms. | 1 |
PageSize | integer | No | The number of row cache hits. | 10 |
FilterCondition | object | No | The average number of logical reads of the SQL statement during the specified period of time. Note
A higher ratio of the number of logical reads to the number of returned rows indicates poorer filtering performance. General causes include non-standard content written by SQL statements, non-standard table indexes created, and non-standard SQL execution plans. | [dbName:sys] |
SortColumn | string | No | The number of rows read from the disk. | cputime |
SortOrder | string | No | The list of top SQL statements. | desc |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 9,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TopSQLList": [
{
"Key": 1,
"ExecPerSecond": 163,
"SQLText": "SELECT **** FROM **** WHERE **** = ? AND **** = ? ORDER BY **** ASC",
"MaxCpuTime": 257.967,
"BlockCacheHit": 14,
"DecodeTime": 0,
"RemotePlans": 0,
"RPCCount": 0,
"NetWaitTime": 0,
"DiskRead": 0,
"NodeIp": "i-bp18qljorblo8es*****",
"ConcurrencyWaitTime": 0,
"MemstoreReadRowCount": 527,
"DbName": "testdb",
"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.044,
"SQLType": 1,
"BlockIndexCacheHit": 4,
"RetryCount": 0,
"SQLId": "8D6E84****0B8FB1823D199E2CA1****",
"ClientIp": "1*2.***.1*3.***",
"BloomFilterCacheHit": 0,
"IOWaitTime": 0,
"FailTimes": 0,
"QueueTime": 15.275,
"RowCacheHit": 0,
"LogicalRead": 19,
"SsstoreReadRowCount": 43086
}
]
}
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 |
---|