Queries the monitoring information about resource groups within an AnalyticDB for MySQL cluster.
Operation description
You can also view resource group monitoring information for AnalyticDB for MySQL clusters in elastic mode for Cluster Edition as graphs in the console. For more information, see View monitoring information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeDBClusterResourcePoolPerformance |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query all AnalyticDB for MySQL clusters in a region, including cluster IDs. |
am-**************** |
| Key |
string |
No |
The metrics of the resource group. You can specify multiple metrics separated by commas (,). Valid values:
Note
|
AnalyticDB_RP_CPU |
| ResourcePools |
string |
No |
The names of the resource groups to query. You can specify multiple names separated by commas (,). Note
|
TEST_POOL |
| StartTime |
string |
Yes |
The start of the time range to query. Specify the time in ISO 8601 format: yyyy-MM-ddTHH:mmZ (UTC). Note
Only monitoring data from the last two days is available. |
2021-06-10T07:00Z |
| EndTime |
string |
Yes |
The end of the time range to query. Must be later than the start time. Specify the time in ISO 8601 format: yyyy-MM-ddTHH:mmZ (UTC). |
2021-06-10T07:01Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| EndTime |
string |
The end of the monitoring time range, in ISO 8601 format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2021-06-10T07:01:00Z |
| RequestId |
string |
The request ID. |
C7EDB8E4-9769-4233-88C7-DCA4C9****** |
| StartTime |
string |
The start of the monitoring time range, in ISO 8601 format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2021-06-10T07:00:00 |
| DBClusterId |
string |
The cluster ID. |
am-**************** |
| Performances |
array<object> |
The monitoring information about the metrics. |
|
|
array<object> |
The monitoring information about a metric. |
||
| Key |
string |
The metric of the resource group. |
AnalyticDB_RP_CPU |
| Unit |
string |
The unit of the metric value. |
% |
| ResourcePoolPerformances |
array<object> |
The monitoring information about the resource groups. |
|
|
array<object> |
The monitoring information about a resource group. |
||
| ResourcePoolName |
string |
The name of the resource group. |
test_pool |
| ResourcePoolSeries |
array<object> |
The time-series monitoring data for the resource groups. |
|
|
object |
The time-series monitoring data for a resource group. |
||
| Values |
array |
The value of the metric. |
|
|
string |
The metric values at different points in time. |
["2021-06-10T07:00:22.601Z","0.0000"],["2021-06-10T07:00:52.62Z","0.0312"] |
|
| Name |
string |
The name of the metric. |
cpu |
Examples
Success response
JSON format
{
"EndTime": "2021-06-10T07:01:00Z",
"RequestId": "C7EDB8E4-9769-4233-88C7-DCA4C9******",
"StartTime": "2021-06-10T07:00:00",
"DBClusterId": "am-****************",
"Performances": [
{
"Key": "AnalyticDB_RP_CPU",
"Unit": "%",
"ResourcePoolPerformances": [
{
"ResourcePoolName": "test_pool",
"ResourcePoolSeries": [
{
"Values": [
"[\"2021-06-10T07:00:22.601Z\",\"0.0000\"],[\"2021-06-10T07:00:52.62Z\",\"0.0312\"]"
],
"Name": "cpu"
}
]
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | The specified StartTime is invalid. | The specified StarTime parameter is invalid. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.