All Products
Search
Document Center

:DescribeDiskMonitorData

更新时间:Dec 06, 2023

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

Usage notes

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.

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

Parameter

Type

Required

Example

Description

Action String Yes DescribeDiskMonitorData

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

DiskId String Yes d-bp1bq5g3dxxo1x4o****

The ID of the disk.

StartTime String Yes 2014-07-23T12:07:00Z

The beginning of the time range to query. 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.

EndTime String Yes 2014-07-23T12:09:00Z

The end of the time range to query. 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.

Period Integer No 60

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

  • 60
  • 600
  • 3600

Default value: 60.

Response parameters

Parameter

Type

Example

Description

TotalCount Integer 3

The total number of returned monitoring data entries.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

MonitorData Array of DiskMonitorData

The disk monitoring data.

DiskMonitorData
BPSRead Integer 0

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

IOPSRead Integer 0

The number of read IOPS on the system disk.

LatencyRead Integer 0

The read latency of the disk. Unit: μs.

BPSTotal Integer 204

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

IOPSTotal Integer 0

The total number of read and write IOPS on the system disk.

TimeStamp String 2014-07-23T12:07:00Z

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

LatencyWrite Integer 0

The write latency of the disk. Unit: μs.

IOPSWrite Integer 0

The number of write IOPS on the system disk.

DiskId String d-bp1bq5g3dxxo1x4o****

The disk ID.

BPSWrite Integer 204

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 code

Error code

Error message

Description

400 InvalidEndTime.Malformed The specified parameter "EndTime" is not valid. Invalid EndTime value.
400 InvalidParameter.TooManyDataQueried Too many data queried. The maximum amount of monitoring data that can be queried is exceeded.
400 Throttling Request was denied due to request throttling. The request is denied due to throttling.
400 InvalidInstanceType.NotSupportCredit The InstanceType of the specified instance does not support credit. The instance type does not support burstable instances.
400 InvalidParameter.EndTime The specified parameter EndTime is earlier than StartTime. The specified end time is earlier than the specified start time.
404 InvalidDiskId.NotFound The DiskId provided does not exist in our records. The specified disk is not found. Check whether the disk ID is valid.
500 InternalError The request processing has failed due to some unknown error, exception or failure. An internal error occurred. Try again later.

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