Retrieves query execution monitoring data for a specified time range.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeDiagnosisMonitorPerformance |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster. Note
You can call the DescribeDBClusters operation to query the cluster IDs of all AnalyticDB for MySQL Data Warehouse Edition (V3.0) clusters within a region. |
am-bp108q1py5r78**** |
| StartTime |
string |
Yes |
The beginning of the time range to query. Specify a UNIX timestamp in milliseconds. |
1671684348000 |
| EndTime |
string |
Yes |
The end of the time range to query. Specify a UNIX timestamp in milliseconds. |
1671687948000 |
| RegionId |
string |
Yes |
The region ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent region list. |
cn-beijing |
| QueryCondition |
string |
Yes |
The query conditions for SQL statements in JSON format. Specify a combination of
|
{\"Type\":\"maxCost\",\"Value\":\"100\"} |
| Lang |
string |
No |
The language of file titles and error messages. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PerformancesThreshold |
integer |
The maximum number of queries that can be displayed in a Gantt chart. Default value: 10000. Note
Up to 10,000 queries can be displayed in a Gantt chart even if more queries exist. |
10000 |
| PerformancesTruncated |
boolean |
Indicates whether all queries are returned. Valid values:
|
false |
| RequestId |
string |
The request ID. |
0F1AC5FD-16E9-5399-B81F-5AC434B1D9F8 |
| Performances |
array<object> |
The monitoring information about queries displayed in Gantt charts. |
|
|
object |
|||
| Status |
string |
The status of the SQL statement. Valid values:
|
running |
| ProcessId |
string |
The query ID. |
202210311015270330101470300315153**** |
| StartTime |
integer |
The execution start time of the SQL statement. The value is a UNIX timestamp in milliseconds. |
1669011260000 |
| Cost |
integer |
The total execution duration. Unit: milliseconds. Note
This value is the sum of the |
252 |
| ScanRows |
integer |
The number of rows scanned. |
2345 |
| PeakMemory |
integer |
The peak memory usage of the query. Unit: bytes. |
123 |
| RcHost |
string |
The IP address of the AnalyticDB for MySQL frontend node that executed the SQL statement. |
192.168.XX.XX |
| ScanSize |
integer |
The amount of scanned data. Unit: bytes. |
123 |
| UserName |
string |
The database account used to submit the query. |
rpt |
Examples
Success response
JSON format
{
"PerformancesThreshold": 10000,
"PerformancesTruncated": false,
"RequestId": "0F1AC5FD-16E9-5399-B81F-5AC434B1D9F8",
"Performances": [
{
"Status": "running",
"ProcessId": "202210311015270330101470300315153****",
"StartTime": 1669011260000,
"Cost": 252,
"ScanRows": 2345,
"PeakMemory": 123,
"RcHost": "192.168.XX.XX",
"ScanSize": 123,
"UserName": "rpt"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.