获取计算节点性能监控
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
polardb:DescribeDBInstancePerformance |
get |
*DBCluster
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
DBInstanceId |
string |
是 |
节点 ID。 |
pi-************* |
Key |
string |
否 |
数据库性能参数值,多个值用英文逗号(,)隔开。详情请参见性能参数表。 |
PolarDBCPUForPCU,PolarDBPCU,PolarDBMemoryForPCU,PolarDBQPSTPS,PolarDBConnections |
StartTime |
string |
是 |
查询开始时间。格式为[unk]yyyy-mm-ddthh:mmz[unk](utc 时间)。 |
2022-11-15T16:00Z |
EndTime |
string |
是 |
查询结束时间。格式为[unk]yyyy-mm-ddthh:mmz[unk](utc 时间)。 |
2020-01-15T17:00Z |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
计算节点监控列表 |
||
PerformanceKeys |
object |
||
PerformanceItem |
array<object> |
计算节点监控列表 |
|
object |
计算节点监控数据 |
||
MetricName |
string |
具体的性能指标度量名称。 |
mean_data_size |
Measurement |
string |
具体的性能指标度量。 |
PolarDBDiskUsage |
Points |
object |
||
PerformanceItemValue |
array<object> |
计算节点性能参数列表 |
|
object |
|||
Value |
string |
计算节点性能参数值 |
12.33 |
Timestamp |
integer |
监控指标的具体时间点,格式为 Unix 时间戳,单位为毫秒(ms)。 |
1737424822 |
DBVersion |
string |
MySQL 版本号。取值范围:
|
5.6 |
EndTime |
string |
查询结束时间。格式: |
2020-09-23T01:01Z |
RequestId |
string |
请求 id。 |
F2A9EFA7-915F-4572-8299-85A307****** |
DBInstanceId |
string |
节点 ID。 |
pi-************* |
StartTime |
string |
查询开始时间。格式: |
2020-09-23T01:01Z |
DBType |
string |
数据库引擎类型。取值范围如下:
|
MySQL |
Engine |
string |
数据库引擎类型。 |
POLARDB |
示例
正常返回示例
JSON
格式
{
"PerformanceKeys": {
"PerformanceItem": [
{
"MetricName": "mean_data_size",
"Measurement": "PolarDBDiskUsage",
"Points": {
"PerformanceItemValue": [
{
"Value": "12.33",
"Timestamp": 1737424822
}
]
}
}
]
},
"DBVersion": "5.6",
"EndTime": "2020-09-23T01:01Z",
"RequestId": "F2A9EFA7-915F-4572-8299-85A307******",
"DBInstanceId": "pi-*************",
"StartTime": "2020-09-23T01:01Z",
"DBType": "MySQL",
"Engine": "POLARDB"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | InvalidKey.Malformed | The specified parameter Key is not valid. | 指定的参数键无效 |
400 | InvalidEndTime.Malformed | The specified parameter EndTime is not valid. | 指定的参数EndTime无效 |
400 | InvalidStartTime.Malformed | The specified parameter StartTime is not valid. | 指定的参数StartTime无效 |
400 | InvalidParameterCombination | The end time must be greater than the start time. | 结束时间必须大于开始时间 |
404 | InvalidDBNodeId.NotFound | The DBNodeId provided does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。