只能查詢到狀態(tài) In_use 狀態(tài)的磁盤的監(jiān)控信息。
可返回的監(jiān)控內(nèi)容包括:磁盤的讀 IOPS,磁盤的寫 IOPS,磁盤的讀帶寬(Bps),磁盤的寫帶寬(Bps),磁盤的讀延時(shí)(ms),磁盤的寫延時(shí)(ms)。有可能返回的監(jiān)控內(nèi)容中會(huì)缺少部分內(nèi)部,這可能是由于系統(tǒng)沒有獲得到相應(yīng)的信息,比如磁盤不在 In_use 狀態(tài)。
一次最大只容許返回 400 條監(jiān)控?cái)?shù)據(jù),如果指定的 (EndTime – StartTime)/ Peroid > 400,則返回錯(cuò)誤。
請求參數(shù)
名稱
類型
是否必須
描述
Action
String
是
系統(tǒng)規(guī)定參數(shù),取值:DescribeDiskMonitorData
DiskId
String
是
指定監(jiān)控的磁盤 ID
StartTime
String
是
獲取數(shù)據(jù)的起始時(shí)間點(diǎn):按照 ISO8601 標(biāo)準(zhǔn)表示,并需要使用 UTC 時(shí)間。格式為:YYYY-MM-DDThh:mm:ssZ。
如果秒不是 00,則自動(dòng)取為下一分鐘開始時(shí)
EndTime
String
是
獲取數(shù)據(jù)的結(jié)束時(shí)間點(diǎn):按照 ISO8601 標(biāo)準(zhǔn)表示,并需要使用 UTC 時(shí)間。格式為:YYYY-MM-DDThh:mm:ssZ。
如果秒不是 00,則自動(dòng)取為下一分鐘開始時(shí)
Period
Integer
否
獲取監(jiān)控?cái)?shù)據(jù)的精度:
60 秒
600 秒
3600 秒
默認(rèn) 60 秒。
返回參數(shù)
名稱
類型
描述
TotalCount
Integer
磁盤監(jiān)控?cái)?shù)據(jù)的總個(gè)數(shù)
MonitorData
DiskMonitorDataType
磁盤的監(jiān)控?cái)?shù)據(jù) DiskMonitorDataType 組成的集合。
錯(cuò)誤碼
錯(cuò)誤代碼
描述
Http 狀態(tài)碼
語義
InvalidDiskId.NotFound
The DiskId provided does not exist in our records.
404
磁盤 ID 不存在
MissingParameter
The input parameter "DiskId" that is mandatory for processing this request is not supplied.
400
缺少 Disk ID 參數(shù)
InvalidStartTime.Malformed
The specified parameter "StartTime" is not valid.
400
StartTime 格式不合法
MissingParameter
The input parameter "StartTime" that is mandatory for processing this request is not supplied.
400
缺少 StartTime 值
InvalidEndTime.Malformed
The specified parameter "EndTime" is not valid.
400
指定的 EndTime 格式不合法
MissingParameter
The input parameter "EndTime" that is mandatory for processing this request is not supplied.
400
缺少 EndTime 值
InvalidParameter
The specified parameter "Period" is not valid.
400
指定的 Period 不是數(shù)字
InvalidPeriod.ValueNotSupported
The specified parameter "Period" is not valid.
400
指定的 Period 格式不合法
InvalidStartTime.TooEarly
The specified parameter "StartTime" is too early.
400
指定的 StartTime 太早
示例
請求示例
https://ecs.aliyuncs.com/?Action=DescribeDiskMonitorData
&DiskId=d-mydisk001
&StartTime=2014-07-23T12:07:00Z
&EndTime=2014-07-23T12:09:00Z
&<公共請求參數(shù)>
返回示例

JSON格式
{
"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