Queries the performance data of an instance.
Operation description
Note:
The endpoint differs from other API operations. For Chinese mainland regions and Singapore, use polardbx.aliyuncs.com. For other regions, use polardbx.{region id}.aliyunc.com.
When debugging this API operation, if you receive a service unavailable error, verify that the endpoint is correct. You can switch the service address to Dubai or India and change the endpoint to polardbx.aliyuncs.com.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:DescribeDBNodePerformance |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Key |
string |
Yes |
The metric names. Separate multiple names with commas (,). You can specify up to 6 metrics. For more information, see Performance metrics. |
Cpu_Usage,Mem_Usage |
| StartTime |
string |
Yes |
The start time of the query. Format: YYYY-MM-ddTHH:mmZ (UTC). |
2012-06-08T15:00Z |
| DBInstanceName |
string |
Yes |
The name of the PolarDB-X instance. |
pxc-******* |
| DBNodeIds |
string |
Yes |
The node names. Separate multiple names with commas (,). You can specify up to 10 CDC nodes or compute nodes at a time, and up to 1 data node at a time. |
pxc-i-******,pxc-i-******* |
| CharacterType |
string |
Yes |
The node type. Valid values: polarx_cn, polarx_dn, polarx_cdc, polarx_gms, and polarx_columnar. |
polarx_cn |
| DBNodeRole |
string |
No |
The node role. Valid values:
|
master |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| EndTime |
string |
Yes |
The end time of the query. Format: YYYY-MM-ddTHH:mmZ (UTC). |
2012-06-18T15:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end time of the query. Format: YYYY-MM-ddTHH:mm:ssZ (UTC). |
2021-10-20T02:00Z |
| StartTime |
string |
The start time of the query. Format: YYYY-MM-ddTHH:mm:ssZ (UTC). |
2021-10-20T00:00Z |
| DBInstanceName |
string |
The instance name. |
pxc-******** |
| RequestId |
string |
The request ID. |
EFB5E10B-5268-170F-A378-9AF86CCEACC8 |
| PerformanceKeys |
object |
||
| PerformanceItem |
array<object> |
The list of performance data. |
|
|
array<object> |
|||
| MetricName |
string |
The name of the specific performance metrics measurement. |
logic_tps |
| DBNodeId |
string |
The node name. |
pxc-i-******** |
| Measurement |
string |
The performance metrics. |
Logic_TPS |
| Points |
object |
||
| PerformanceItemValue |
array<object> |
The array of performance data. |
|
|
object |
|||
| Value |
string |
The value of the monitoring metrics. |
42.38 |
| Timestamp |
integer |
The point in time of the monitoring metrics. The value is in the format of a UNIX timestamp. Unit: milliseconds. |
1600822800000 |
Examples
Success response
JSON format
{
"EndTime": "2021-10-20T02:00Z",
"StartTime": "2021-10-20T00:00Z",
"DBInstanceName": "pxc-********",
"RequestId": "EFB5E10B-5268-170F-A378-9AF86CCEACC8",
"PerformanceKeys": {
"PerformanceItem": [
{
"MetricName": "logic_tps",
"DBNodeId": "pxc-i-********",
"Measurement": "Logic_TPS",
"Points": {
"PerformanceItemValue": [
{
"Value": "42.38",
"Timestamp": 1600822800000
}
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.