DescribePatternPerformance
View metric details (such as query time and average memory consumption) for SQL patterns over a specified time range in a cluster.
Operation description
For the endpoint of this service, see 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 cluster ID. Note
You can call the DescribeDBClusters operation to query the details of all clusters in a region, including their cluster IDs. |
amv-uf6li1r3do8m**** |
| StartTime |
string |
No |
The beginning of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mm:ssZ format. Note
|
2022-08-21T02:15:00Z |
| EndTime |
string |
No |
The end of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mm:ssZ format. Note
The end time must be later than the start time. |
2022-08-22T01:06:00Z |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| PatternId |
string |
No |
The ID of the SQL pattern. Note
You can call the DescribeSQLPatterns operation to query information about all SQL patterns in a cluster within a specified time range, including the ID of each SQL pattern. |
3847585356974****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end of the query time range. The time is in UTC and is formatted as yyyy-MM-ddTHH:mmZ. |
2022-08-22T01:06:00Z |
| RequestId |
string |
The request ID. |
F21AF487-B8C9-57E0-8E3A-A92BC3611FB6 |
| StartTime |
string |
The start of the query time range. The time is in UTC and is formatted as yyyy-MM-ddTHH:mmZ. |
2022-08-21T02:15:00Z |
| Performances |
array<object> |
The performance metrics. |
|
|
array<object> |
The details of a performance metric. |
||
| Key |
string |
The performance metric. Valid values:
|
AnalyticDB_PatternExecutionTime |
| Unit |
string |
The unit of the performance metric. The returned unit varies based on the value of
|
ms |
| Series |
array<object> |
The time series data for the performance metric. |
|
|
object |
A time series for a specific performance value. |
||
| Values |
array |
The list of performance values. |
|
|
string |
A data point, which is an array containing a timestamp and its corresponding performance value. |
[ "2021-11-18 13:38:00", "224" ] |
|
| Name |
string |
The name of the performance value. The value of this parameter varies based on the value of
|
max_query_time |
| User |
string |
The database account that executes the SQL statements. |
test_user |
| AccessIp |
string |
The client IP address that submitted the queries that match the sql pattern. |
172.16.14.* |
| SQLPattern |
string |
The SQL statement for the sql pattern. |
SELECT *nFROM HIVE.`ADB_EXTERNAL_TPCH_10GB`.`External_customer`nLIMIT ? |
| Tables |
string |
The tables queried by the sql pattern. |
tpch_1g.part;tpch_1g.supplier;tpch_1g.lineitem;tpch_1g.partsupp;tpch_1g.orders;tpch_1g.nation |
| FailedCount |
integer |
The number of failed executions for the sql pattern within the query time range. |
1 |
| QueryCount |
integer |
The number of executions for the sql pattern within the query time range. |
1202 |
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": "test_user",
"AccessIp": "172.16.14.*",
"SQLPattern": "SELECT *nFROM HIVE.`ADB_EXTERNAL_TPCH_10GB`.`External_customer`nLIMIT ?",
"Tables": "tpch_1g.part;tpch_1g.supplier;tpch_1g.lineitem;tpch_1g.partsupp;tpch_1g.orders;tpch_1g.nation",
"FailedCount": 1,
"QueryCount": 1202
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.