Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report