Queries fine-grained monitoring data of a disk.
Operation description
Usage notes
CloudLens for EBS is in invitational preview in the China (Hangzhou), China (Shanghai), China (Zhangjiakou), China (Shenzhen), and China (Hong Kong) regions. To use the feature, submit a ticket.
Up to 400 monitoring data entries can be returned at a time. An error is returned if the value calculated based on the following formula is greater than 400:
(EndTime - StartTime)/Period.You can query the monitoring data collected in the last three days. An error is returned if the time specified by
StartTimeis more than three days prior to the current time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ebs:DescribeDiskMonitorData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the disk. |
cn-hangzhou |
| DiskId |
string |
Yes |
The ID of the disk. |
d-bp67acfmxazb4p**** |
| StartTime |
string |
Yes |
The beginning of the time range during which you want to query the near real-time monitoring data of the disk. Specify the time in the ISO 8601 standard in the |
2022-06-01T03:00:00Z |
| EndTime |
string |
Yes |
The end of the time range during which you want to query the near real-time monitoring data of the disk. Specify the time in the ISO 8601 standard in the |
2022-06-01T05:00:00Z |
| Period |
integer |
No |
The interval at which the near real-time monitoring data is collected. Unit: seconds. Valid values:
Default value: 5. |
5 |
| Type |
string |
No |
The type of the monitoring data. Valid values:
|
basic |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalCount |
integer |
The total number of entries returned. |
15 |
| MonitorData |
array<object> |
The near real-time monitoring data of the disk. |
|
|
object |
The near real-time monitoring data of the disk. |
||
| ReadBPS |
integer |
The read bandwidth of the disk. Unit: MByte/s. |
10 |
| WriteBPS |
integer |
The write bandwidth of the disk. Unit: MByte/s. |
204 |
| DiskId |
string |
The ID of the disk. |
d-bp1bq5g3dxxo1x4o**** |
| ReadIOPS |
integer |
The maximum number of read IOPS. |
2000 |
| WriteIOPS |
integer |
The maximum number of write IOPS. |
2000 |
| IOPSPercent |
integer |
The percentage of IOPS. |
80(%) |
| BPSPercent |
integer |
The percentage of BPS. |
80(%) |
| Timestamp |
string |
The timestamp that is used to query the near real-time monitoring data of the disk. The time follows the ISO 8601 standard in the |
2022-06-01T08:00:00Z |
| BurstIOCount |
integer |
The number of burst I/O operations. |
0 |
| ReadBlockSize |
integer |
Read IO block size. Unit: Bytes |
4096 |
| WriteBlockSize |
integer |
Write IO block size. Unit: Bytes |
4096 |
| ReadLatency |
integer |
Read IO latency. Unit: microsecond |
100 |
| WriteLatency |
integer |
Write IO latency. Unit: microsecond |
100 |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"TotalCount": 15,
"MonitorData": [
{
"ReadBPS": 10,
"WriteBPS": 204,
"DiskId": "d-bp1bq5g3dxxo1x4o****",
"ReadIOPS": 2000,
"WriteIOPS": 2000,
"IOPSPercent": 0,
"BPSPercent": 0,
"Timestamp": "2022-06-01T08:00:00Z",
"BurstIOCount": 0,
"ReadBlockSize": 4096,
"WriteBlockSize": 4096,
"ReadLatency": 100,
"WriteLatency": 100
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error has occurred. |
| 403 | Forbidden | User is not authorized to operate. | You are not authorized to manage the resource. Check the account permissions or contact the Alibaba Cloud account. |
| 403 | Forbidden.Action | User is not authorized to operate this action. | You are not authorized to perform this operation. Check the account permissions or contact the Alibaba Cloud account. |
| 404 | NoSuchResource | The specified resource does not exist. | The specified resource does not exist. |
| 504 | RequestTimeout | The request is timeout, please try again later. | The request has timed out. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.