Queries the performance data of a cluster.
Operation description
For the service endpoint, 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 Data Lakehouse Edition cluster. Note
You can call the DescribeDBClusters operation to view the IDs of all clusters in the destination region. |
amv-bp1hx5n1o8f61**** |
| Key |
string |
No |
The keys of the performance metrics that you want to query. Separate multiple keys with commas (,). For more information about supported metrics, see Overview of metrics. |
AnalyticDB_CPU_Usage_Percentage |
| StartTime |
string |
No |
The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. |
2022-03-10T23:56Z |
| EndTime |
string |
No |
The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. Note
The end time must be later than the start time. The time range cannot exceed two days. |
2022-03-11T15:01Z |
| RegionId |
string |
Yes |
The region ID. Note
Call the DescribeRegions operation to query the information about regions and zones that are 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 of the time range that was queried. The time is in the yyyy-MM-ddTHH:mmZ format and is displayed in UTC. |
2022-03-11T15:01Z |
| RequestId |
string |
The request ID. |
BD8C3096-8BC6-51DF-A4AB-BACD9DC10435 |
| StartTime |
string |
The beginning of the time range that was queried. The time is in the yyyy-MM-ddTHH:mmZ format and is displayed in UTC. |
2022-03-10T23:56Z |
| DBClusterId |
string |
The cluster ID. Note
Call the DescribeDBClusters operation to query the IDs of all clusters in a specific region. |
amv-bp1hx5n1o8f61**** |
| Performances |
array<object> |
The list of cluster performance metrics. |
|
|
array<object> |
List. |
||
| Key |
string |
The name of the performance metric. |
AnalyticDB_CPU_Usage_Percentage |
| Unit |
string |
The unit of the metric. |
% |
| Series |
array<object> |
The list of performance data. |
|
|
object |
List. |
||
| Values |
array |
The details about the performance values at different points in time. |
|
|
string |
The details about 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 metric. This is the value name of the monitoring metric. For more information, see Overview of metrics. |
AnalyticDB_Storage_CPU_Avg_Usage_Percentage |
| Tags |
string |
The tag value. |
{instance_name: "am-***"} |
| TranslateKey |
string |
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": ""
}
]
}
]
}
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.