View performance metrics for SQL patterns in a cluster over a specified time range. Metrics include query time and average memory consumption.
Operation description
For the current service endpoint, see service endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribePatternPerformance |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the cluster. Note
To view details of all clusters in a region, including their IDs, call the DescribeDBClusters operation. |
amv-uf6li1r3do8m**** |
| StartTime |
string |
No |
The start time of the query. Specify the time in UTC using the format yyyy-MM-ddTHH:mm:ssZ. Note
|
2022-08-21T02:15:00Z |
| EndTime |
string |
No |
The end time of the query. Specify the time in UTC using the format yyyy-MM-ddTHH:mmZ. Note
The end time must be later than the start time. |
2022-08-22T01:06:00Z |
| RegionId |
string |
Yes |
The ID of the region. |
cn-hangzhou |
| PatternId |
string |
No |
The ID of the SQL pattern. Note
To view a list of SQL patterns in a cluster during a specified time range, including their IDs, call the DescribeSQLPatterns operation. |
3847585356974****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end time of the query. Specify the time in UTC using the format yyyy-MM-ddTHH:mmZ. |
2022-08-22T01:06:00Z |
| RequestId |
string |
The ID of the request. |
F21AF487-B8C9-57E0-8E3A-A92BC3611FB6 |
| StartTime |
string |
The start time of the query. Specify the time in UTC using the format yyyy-MM-ddTHH:mmZ. |
2022-08-21T02:15:00Z |
| Performances |
array<object> |
Details. |
|
|
array<object> |
List. |
||
| Key |
string |
The performance metric. Valid values:
|
AnalyticDB_PatternExecutionTime |
| Unit |
string |
The unit of the performance metric. Valid values:
|
ms |
| Series |
array<object> |
Details of performance values for the metric. |
|
|
object |
List item. |
||
| Values |
array |
List of performance values. |
|
|
string |
Detailed performance values at different timestamps. |
[ "2021-11-18 13:38:00", "224" ] |
|
| Name |
string |
The name of the performance value. Valid values:
|
max_query_time |
| User |
string |
||
| AccessIp |
string |
||
| SQLPattern |
string |
||
| Tables |
string |
||
| FailedCount |
integer |
||
| QueryCount |
integer |
Examples
Success response
JSON format
{
"EndTime": "2022-08-22T01:06:00Z",
"RequestId": "F21AF487-B8C9-57E0-8E3A-A92BC3611FB6",
"StartTime": "2022-08-21T02:15:00Z",
"Performances": [
{
"Key": "AnalyticDB_PatternExecutionTime",
"Unit": "ms",
"Series": [
{
"Values": [
"[ \"2021-11-18 13:38:00\", \"224\" ]"
],
"Name": "max_query_time"
}
]
}
],
"User": "",
"AccessIp": "",
"SQLPattern": "",
"Tables": "",
"FailedCount": 0,
"QueryCount": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.