Queries the monitoring data of a disk over a specific period of time.

Description

The monitoring data includes read IOPS, write IOPS, read bandwidth (byte/s), write bandwidth (byte/s), read latency (μs), and write latency (μs) of the disk.

When you call this operation, take note of the following items:

  • You can query the monitoring data only of the disks that are in the In Use (In_Use) state. For more information, see Disk states.
    Note Some information may be missing from the monitoring data of a disk because the disk is not in the In Use (In_Use) state and the system cannot obtain the relevant information.
  • 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 in the previous 30 days. If the value of StartTime is more than 30 days before the current time, an error is returned.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDescribeDiskMonitorData

The operation that you want to perform. Set the value to DescribeDiskMonitorData.

DiskIdStringYesd-bp1bq5g3dxxo1x4o****

The ID of the disk.

StartTimeStringYes2014-07-23T12:07:00Z

The beginning of the time range in which to query the monitoring data. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute.

EndTimeStringYes2014-07-23T12:09:00Z

The end of the time range in which to query the monitoring data. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute.

PeriodIntegerNo.60

The interval at which to retrieve the monitoring data. Unit: seconds. Valid values:

  • 60
  • 600
  • 3600

Default value: 60.

Response parameters

ParameterTypeExampleDescription
TotalCountInteger3

The total number of returned monitoring data entries.

RequestIdString473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

MonitorDataArray of DiskMonitorData

Details about the monitoring data of the disk.

DiskMonitorData
BPSReadInteger0

The read bandwidth of the system disk. Unit: byte/s.

IOPSReadInteger0

The number of read I/O operations per second on the system disk.

LatencyReadInteger0

The read latency of the disk. Unit: microseconds.

BPSTotalInteger204

The total read and write bandwidth of the system disk. Unit: byte/s.

IOPSTotalInteger0

The total number of read and write I/O operations per second on the system disk.

TimeStampString2014-07-23T12:07:00Z

The timestamp to query the monitoring data. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

LatencyWriteInteger0

The write latency of the disk. Unit: microseconds.

IOPSWriteInteger0

The number of write I/O operations per second on the system disk.

DiskIdStringd-bp1bq5g3dxxo1x4o****

The ID of the disk.

BPSWriteInteger204

The write bandwidth of the system disk. Unit: byte/s.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=DescribeDiskMonitorData
&DiskId=d-bp1bq5g3dxxo1x4o****
&EndTime=2014-07-23T12:09:00Z
&StartTime=2014-07-23T12:07:00Z
&Period=60
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDiskMonitorDataResponse>
        <MonitorData>
                <DiskMonitorData>
                        <BPSRead>0</BPSRead>
                        <BPSTotal>0</BPSTotal>
                        <BPSWrite>0</BPSWrite>
                        <DiskId>d-bp1bq5g3dxxo1x4o****</DiskId>
                        <IOPSRead>0</IOPSRead>
                        <IOPSTotal>0</IOPSTotal>
                        <IOPSWrite>0</IOPSWrite>
                        <TimeStamp>2014-07-23T12:07:00Z</TimeStamp>
                </DiskMonitorData>
                <DiskMonitorData>
                        <BPSRead>0</BPSRead>
                        <BPSTotal>204</BPSTotal>
                        <BPSWrite>204</BPSWrite>
                        <DiskId>d-bp1bq5g3dxxo1x4o****</DiskId>
                        <IOPSRead>0</IOPSRead>
                        <IOPSTotal>0</IOPSTotal>
                        <IOPSWrite>0</IOPSWrite>
                        <TimeStamp>2014-07-23T12:08:00Z</TimeStamp>
                </DiskMonitorData>
                <DiskMonitorData>
                        <BPSRead>0</BPSRead>
                        <BPSTotal>819</BPSTotal>
                        <BPSWrite>819</BPSWrite>
                        <DiskId>d-bp1bq5g3dxxo1x4o****</DiskId>
                        <IOPSRead>0</IOPSRead>
                        <IOPSTotal>0</IOPSTotal>
                        <IOPSWrite>0</IOPSWrite>
                        <TimeStamp>2014-07-23T12:09:00Z</TimeStamp>
                </DiskMonitorData>
        </MonitorData>
        <RequestId>BF666447-B171-4076-BCBA-48437C18FD76</RequestId>
        <TotalCount>3</TotalCount>
</DescribeDiskMonitorDataResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "MonitorData" : {
    "DiskMonitorData" : [ {
      "BPSRead" : 0,
      "BPSTotal" : 0,
      "BPSWrite" : 0,
      "DiskId" : "d-bp1bq5g3dxxo1x4o****",
      "IOPSRead" : 0,
      "IOPSTotal" : 0,
      "IOPSWrite" : 0,
      "TimeStamp" : "2014-07-23T12:07:00Z"
    }, {
      "BPSRead" : 0,
      "BPSTotal" : 204,
      "BPSWrite" : 204,
      "DiskId" : "d-bp1bq5g3dxxo1x4o****",
      "IOPSRead" : 0,
      "IOPSTotal" : 0,
      "IOPSWrite" : 0,
      "TimeStamp" : "2014-07-23T12:08:00Z"
    }, {
      "BPSRead" : 0,
      "BPSTotal" : 819,
      "BPSWrite" : 819,
      "DiskId" : "d-bp1bq5g3dxxo1x4o****",
      "IOPSRead" : 0,
      "IOPSTotal" : 0,
      "IOPSWrite" : 0,
      "TimeStamp" : "2014-07-23T12:09:00Z"
    } ]
  },
  "RequestId" : "A48A0A77-34F5-4C33-9066-9E8D2DA0D8E2",
  "TotalCount" : 3
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.TooManyDataQueriedToo many data queried.The error message returned because the amount of queried monitoring data has reached the upper limit.
400ThrottlingRequest was denied due to request throttling.The error message returned because your request is throttled. Try again later.
400InvalidInstanceType.NotSupportCreditThe InstanceType of the specified instance does not support credit.The error message returned because the instance type does not support burstable instances.
400InvalidParameter.EndTimeThe specified parameter EndTime is earlier than StartTime.The error message returned because the end time cannot be earlier than the start time.
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.The error message returned because an internal error has occurred. Try again later.
404InvalidDiskId.NotFoundThe DiskId provided does not exist in our records.The error message returned because the specified disk does not exist. Check whether the disk ID is correct.

For a list of error codes, see Service error codes.