All Products
Search
Document Center

Elastic Compute Service:DescribeDiskMonitorData

Last Updated:Dec 06, 2024

Queries the monitoring data of a disk in a specific period of time. When you call this operation, you can specify parameters, such as DiskId, StartTime, and EndTime, in the request.

Operation description

Usage notes

You can query the following monitoring data of a disk: the read IOPS, write IOPS, read bandwidth (byte/s), write bandwidth (byte/s), read latency (microseconds), and write latency (microseconds).

Take note of the following items:

  • Monitoring data of only disks that are in the In Use (In_use) state can be queried. 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. Make sure that the TotalCount value does not exceed 400. The value is calculated by using the following formula: TotalCount = (EndTime - StartTime)/Period. If the TotalCount value is greater than 400, the InvalidParameter.TooManyDataQueried error is returned.

  • You can query the monitoring data in the last 30 days. If the value of StartTime is more than 30 days earlier than the current time, an error is returned.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecs:DescribeDiskMonitorDataget
*Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DiskIdstringYes

The disk ID.

d-bp1bq5g3dxxo1x4o****
StartTimestringYes

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.

2014-07-23T12:07:00Z
EndTimestringYes

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.

2014-07-23T12:09:00Z
PeriodintegerNo

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

  • 60
  • 600
  • 3600

Default value: 60.

60

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of returned monitoring data entries.

3
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
MonitorDataarray<object>

The monitoring data of the disk.

DiskMonitorDataobject
BPSReadinteger

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

0
IOPSReadinteger

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

0
LatencyReadinteger

The read latency of the disk. Unit: microseconds.

0
BPSTotalinteger

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

204
IOPSTotalinteger

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

0
TimeStampstring

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

2014-07-23T12:07:00Z
LatencyWriteinteger

The write latency of the disk. Unit: microseconds.

0
IOPSWriteinteger

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

0
DiskIdstring

The ID of the disk.

d-bp1bq5g3dxxo1x4o****
BPSWriteinteger

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

204

Examples

Sample success responses

JSONformat

{
  "TotalCount": 3,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "MonitorData": {
    "DiskMonitorData": [
      {
        "BPSRead": 0,
        "IOPSRead": 0,
        "LatencyRead": 0,
        "BPSTotal": 204,
        "IOPSTotal": 0,
        "TimeStamp": "2014-07-23T12:07:00Z",
        "LatencyWrite": 0,
        "IOPSWrite": 0,
        "DiskId": "d-bp1bq5g3dxxo1x4o****",
        "BPSWrite": 204
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidStartTime.MalformedThe specified parameter "StartTime" is not valid.-
400InvalidEndTime.MalformedThe specified parameter "EndTime" is not valid.The specified EndTime parameter is invalid.
400InvalidPeriod.ValueNotSupportedThe specified parameter "Period" is not valid.-
400InvalidStartTime.TooEarlyThe specified parameter "StartTime" is too early.-
400InvalidParameter.TooManyDataQueriedToo many data queried.-
400ThrottlingRequest was denied due to request throttling.-
400InvalidInstanceType.NotSupportCreditThe InstanceType of the specified instance does not support credit.The instance type does not support burstable instances.
400InvalidParameter.EndTimeThe specified parameter EndTime is earlier than StartTime.The end time cannot be earlier than the start time.
404InvalidDiskId.NotFoundThe DiskId provided does not exist in our records.The specified disk does not exist. Check whether the disk ID is correct.
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.An internal error has occurred. Try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-12-04API Description Update. The Error code has changedView Change Details
2023-05-06The Error code has changedView Change Details