Queries the monitoring information of resource pools within an AnalyticDB for MySQL cluster in elastic mode for Cluster Edition.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDBClusterResourcePoolPerformance |
The operation that you want to perform. Set the value to DescribeDBClusterResourcePoolPerformance. |
DBClusterId | String | Yes | am-**************** |
The ID of the cluster. Note You can call the DescribeDBClusters operation to query details about all AnalyticDB for MySQL clusters in a specific
region, including cluster IDs.
|
Key | String | No | AnalyticDB_RP_CPU |
The metric of the resource pool. You can enter multiple metrics at the same time to query the monitoring information. Separate multiple metrics with commas (,). Valid values:
Note
|
ResourcePools | String | No | TEST_POOL |
The names of the resource pools that you want to monitor. You can enter multiple names of resource pools. Separate multiple names with commas (,). Note
|
StartTime | String | Yes | 2021-06-10T07:00Z |
The beginning of the time range to monitor the resource pool. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. Note You can view only the monitoring information of the resource pools for the last two
days.
|
EndTime | String | Yes | 2021-06-10T07:01Z |
The end of the time range to monitor the resource pool. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
EndTime | String | 2021-06-10T07:01:00Z |
The end of the time range to monitor the resource pool. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
RequestId | String | C7EDB8E4-9769-4233-88C7-DCA4C9****** |
The ID of the request. |
StartTime | String | 2021-06-10T07:00:00 |
The beginning of the time range to monitor the resource pool. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
DBClusterId | String | am-**************** |
The ID of the cluster. |
Performances | Array of PerformanceItem |
Details about the monitoring information of the metric. |
|
Key | String | AnalyticDB_RP_CPU |
The metric of the resource pool. |
Unit | String | % |
The unit of the metric. |
ResourcePoolPerformances | Array of ResourcePoolPerformancesItem |
Details about the monitoring information of the resource pool. |
|
ResourcePoolName | String | test_pool |
The name of the resource pool. |
ResourcePoolSeries | Array of ResourcePoolSeriesItem |
Details about the sequential monitoring information. |
|
Values | Array of String | ["2021-06-10T07:00:22.601Z","0.0000"],["2021-06-10T07:00:52.62Z","0.0312"] |
The values of the metric at different points in time. |
Name | String | cpu |
The name of the metric. |
Examples
Sample requests
http(s)://adb.aliyuncs.com/?Action=DescribeDBClusterResourcePoolPerformance
&DBClusterId=am-****************
&StartTime=2021-06-10T07:00Z
&EndTime=2021-06-10T07:01Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDBClusterResourcePoolPerformanceResponse>
<RequestId>C7EDB8E4-9769-4233-88C7-DCA4C9******</RequestId>
<EndTime>2021-06-10T07:01:00Z</EndTime>
<StartTime>2021-06-10T07:00:00Z</StartTime>
<Performances>
<ResourcePoolPerformances>
<ResourcePoolSeries>
<Values>
<0>2021-06-10T07:00:22.601Z</0>
<1>0.0000</1>
</Values>
<Values>
<0>2021-06-10T07:00:52.62Z</0>
<1>0.0312</1>
</Values>
<Name>cpu</Name>
</ResourcePoolSeries>
<ResourcePoolName>test_pool</ResourcePoolName>
</ResourcePoolPerformances>
<Unit>%</Unit>
<Key>AnalyticDB_RP_CPU</Key>
</Performances>
</DescribeDBClusterResourcePoolPerformanceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C7EDB8E4-9769-4233-88C7-DCA4C9******",
"EndTime" : "2021-06-10T07:01:00Z",
"StartTime" : "2021-06-10T07:00:00Z",
"Performances" : [ {
"ResourcePoolPerformances" : [ {
"ResourcePoolSeries" : [ {
"Values" : [ [ "2021-06-10T07:00:22.601Z", "0.0000" ], [ "2021-06-10T07:00:52.62Z", "0.0312" ] ],
"Name" : "cpu"
} ],
"ResourcePoolName" : "test_pool"
} ],
"Unit" : "%",
"Key" : "AnalyticDB_RP_CPU"
} ]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified cluster ID does not exist. Check whether the cluster ID is valid. |
For a list of error codes, visit the API Error Center.