Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of querying the usage information of a disk within a specified time

Shulou Source: shulou.com Published: 2022-06-02 04:23:55 11月06日 Update

This article mainly introduces the method of querying the use information of a disk within a specified time, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

DescribeDiskMonitorData

Query the usage information of a disk within a specified time. The querable disk utility information includes read IOPS, write IOPS, read bandwidth (Bps), write bandwidth (Bps), read delay (ms) and write delay (ms). If the content is missing in the queried information, it is because we cannot obtain the usage information for this period of time, that is, the disk status is not in use (In_Use).

Description

When calling this interface, you need to be aware of:

Only disk usage information that is in use (In_Use) can be queried. For more information, please see the status table of ordinary cloud disks.

Return a maximum of 400 pieces of data at a time, that is, the specified (EndTime-StartTime) / Peroid needs to be less than or equal to 400.

Request parameter

Return parameters

Example

Request example

Https://ecs.aliyuncs.com/?Action=DescribeDiskMonitorData&DiskId=d-mydisk001&StartTime=2014-07-23T12:07:00Z&EndTime=2014-07-23T12:09:00Z&

Return the example

XML format

00 d-23b3p4r8b 00 0 2014-07-23T12:07:00Z 0 204 204 d-23b3p4r8b 00 0 2014-07-23T12:08:00Z 0819 819 d-23b3p4r8b 00 0 2014-07-23T12:09:00Z BF666447-B171-4076-BCBA-48437C18FD76 3

JSON format

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

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

Thank you for reading this article carefully. I hope the editor will be helpful in sharing and querying the information about the use of a disk within a specified period of time. At the same time, I also hope that you can support us, pay attention to the industry information channel, and find out if you have any problems. detailed solutions are waiting for you to learn!

Tags: Information disk query time error method status example article content parameter bandwidth interface more format practical ordinary value at the same time data Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Tech Info Huawei Apple Shulou Information