DescribeDBClusterPerformance
Queries the performance data of a specified cluster.
Operation description
For the service registration endpoint of the current service, see Endpoints.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeDBClusterPerformance |
list |
*DBClusterLakeVersion
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all clusters in a specified region. |
amv-bp1hx5n1o8f61**** |
| Key |
string |
No |
The names of the performance metrics to query, which are the keys of the monitored items. Separate multiple values with commas (,). For more information about the supported metrics, refer to Overview of monitoring metrics. |
AnalyticDB_CPU_Usage_Percentage |
| StartTime |
string |
No |
The start time of the query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format. |
2022-03-10T23:56Z |
| EndTime |
string |
No |
The end time of the query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format. Note
The end time must be later than the start time, and the time span between the start time and the end time cannot exceed two days. |
2022-03-11T15:01Z |
| RegionId |
string |
Yes |
The region ID. Note
You can call the DescribeRegions operation to query the regions and zones supported by AnalyticDB for MySQL, including region IDs. |
cn-hangzhou |
| ResourcePools |
string |
No |
The resource group. |
user_default |
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-03-11T15:01Z |
| RequestId |
string |
The ID of the request. |
BD8C3096-8BC6-51DF-A4AB-BACD9DC10435 |
| StartTime |
string |
The start time of the query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format. |
2022-03-10T23:56Z |
| DBClusterId |
string |
The ID of the cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all clusters in a specified region. |
amv-bp1hx5n1o8f61**** |
| Performances |
array<object> |
The list of cluster performance metrics. |
|
|
array<object> |
The list. |
||
| Key |
string |
The name of the performance metrics. |
AnalyticDB_CPU_Usage_Percentage |
| Unit |
string |
The unit of the monitoring metrics. |
% |
| Series |
array<object> |
The list of performance data. |
|
|
object |
The list. |
||
| Values |
array |
The details of the performance values at different points in time. |
|
|
string |
The details of the performance values at different points in time. |
[ [ "2023-06-27T13:21:00+08:00","0.1250" ], [ "2022-03-11T10:00:42.739Z","0.3125" ]... ] |
|
| Name |
string |
The name of the performance metrics (the value name of the monitoring metrics). For details, see Overview of monitoring metrics. |
AnalyticDB_Storage_CPU_Avg_Usage_Percentage |
| Tags |
string |
The tag values. |
{instance_name: "am-***"} |
| TranslateKey |
string |
The key used for internationalization. You can ignore this parameter. |
AnalyticDB_RP_WaitTime |
Examples
Success response
JSON format
{
"EndTime": "2022-03-11T15:01Z",
"RequestId": "BD8C3096-8BC6-51DF-A4AB-BACD9DC10435",
"StartTime": "2022-03-10T23:56Z",
"DBClusterId": "amv-bp1hx5n1o8f61****",
"Performances": [
{
"Key": "AnalyticDB_CPU_Usage_Percentage",
"Unit": "%",
"Series": [
{
"Values": [
"[\n [ \n \"2023-06-27T13:21:00+08:00\",\"0.1250\" \n ], \n [ \n \"2022-03-11T10:00:42.739Z\",\"0.3125\" \n ]...\n]"
],
"Name": "AnalyticDB_Storage_CPU_Avg_Usage_Percentage",
"Tags": "\n{instance_name: \"am-***\"}",
"TranslateKey": "AnalyticDB_RP_WaitTime"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.