DescribePatternPerformance
Queries the details of various metrics, such as query time and average memory consumption, for SQL patterns in a cluster within a specified time period.
Operation description
For the endpoint of the current service, refer to Endpoints.
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 the specified region, including the cluster IDs. |
amv-uf6li1r3do8m**** |
| StartTime |
string |
No |
The start time of the query. The time is in UTC and follows the yyyy-MM-ddTHH:mm:ssZ format. Note
|
2022-08-21T02:15:00Z |
| EndTime |
string |
No |
The end time of the query. The time is in UTC and follows the yyyy-MM-ddTHH:mmZ 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 the list of all SQL patterns in the specified cluster within a specified time period, including the SQL pattern IDs. |
3847585356974****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end time of the query. The time is in UTC and follows the yyyy-MM-ddTHH:mmZ format. |
2022-08-22T01:06:00Z |
| RequestId |
string |
The request ID. |
F21AF487-B8C9-57E0-8E3A-A92BC3611FB6 |
| StartTime |
string |
The start time of the query. The time is in UTC and follows the yyyy-MM-ddTHH:mmZ format. |
2022-08-21T02:15:00Z |
| Performances |
array<object> |
The performance details. |
|
|
array<object> |
The list of performance metrics. |
||
| Key |
string |
The queried performance metrics. Valid values:
|
AnalyticDB_PatternExecutionTime |
| Unit |
string |
The units corresponding to the performance metrics. Valid values:
|
ms |
| Series |
array<object> |
The details of each performance value under the performance metrics. |
|
|
object |
The list item. |
||
| Values |
array |
The list of performance values. |
|
|
string |
The detailed information of the performance value at different points in time. |
[ "2021-11-18 13:38:00", "224" ] |
|
| Name |
string |
The name of the performance value. Valid values:
|
max_query_time |
| User |
string |
The database account that executes the SQL statement. |
test_user |
| AccessIp |
string |
The IP address of the client that submits the SQL statements related to the pattern. |
172.16.14.* |
| SQLPattern |
string |
The specific statement of the SQL pattern. |
SELECT *nFROM HIVE.`ADB_EXTERNAL_TPCH_10GB`.`External_customer`nLIMIT ? |
| Tables |
string |
The information about the tables involved in the SQL pattern query. |
tpch_1g.part;tpch_1g.supplier;tpch_1g.lineitem;tpch_1g.partsupp;tpch_1g.orders;tpch_1g.nation |
| FailedCount |
integer |
The number of failures of the pattern within the query time range. |
1 |
| QueryCount |
integer |
The number of executions of the 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.