调用DescribeDrdsInstanceMonitor接口查询实例监控数据详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
drds:DescribeDrdsInstanceMonitor |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DrdsInstanceId |
string |
是 |
实例 ID。 |
drds********* |
| Key |
string |
是 |
性能监控指标,允许一次传入多个指标进行查询,多个指标参数间用英文逗号(,)隔开。 说明
更多关于性能监控指标详情,请参见实例监控。 |
cpu |
| StartTime |
integer |
是 |
查询开始时间,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 |
1603123290000 |
| EndTime |
integer |
是 |
查询结束时间,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 说明
如果查询时间范围小于 1 小时,会返回结束时间前 1 小时的数据。 |
1603209690000 |
| PeriodMultiple |
integer |
否 |
监控数据周期倍数。例如,各资源监控项的数据采集周期均默认为 1 分钟,若设置周期倍数为 2,则表示当前资源监控项数据采集周期为 2 分钟。 |
1 |
| RegionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
2F7F8080-9132-4279-85D0-B7E5C4 |
| Data |
array<object> |
查询结果集。 |
|
|
array<object> |
|||
| Key |
string |
监控指标名称。 |
cpu |
| Unit |
string |
监控指标的单位。 |
% |
| NodeNum |
integer |
节点数量。 |
1 |
| Values |
array<object> |
监控指标数据详情。 |
|
|
object |
|||
| Date |
integer |
获取监控指标数值的时间点,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 |
1603163400000 |
| Value |
string |
监控指标数值。 |
1.40 |
示例
正常返回示例
JSON格式
{
"RequestId": "2F7F8080-9132-4279-85D0-B7E5C4",
"Data": [
{
"Key": "cpu",
"Unit": "%",
"NodeNum": 1,
"Values": [
{
"Date": 1603163400000,
"Value": "1.40"
}
]
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ActionUnauthorized | The specified action is not available for you | |
| 400 | InvalidParameter.Mismatch | Invalid parameter of key | |
| 400 | InvalidParameter.time | The startTime and endTime must in one week | |
| 400 | InvalidParameter.periodMultiple | The periodMultiple is too larger than the time between startTime and endTime | |
| 400 | DrdsInstance.NotExists | The drds instance does not exist. | |
| 400 | InvalidParameter | invalid parameter. | 参数异常 |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | Monitor.QueryRdsFailure | Failed to query RDS monitor info. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。