IntranetFlow: 675。
IOPSWrite: 200。
MonitorData: { InstanceMonitorData: [{ InstanceId: Bc0102-23xYm09,比如當(dāng)時(shí)實(shí)例處于 Stopped 狀態(tài), 請(qǐng)求參數(shù) 名稱類型是否必須描述 Action String 是 系統(tǒng)規(guī)定參數(shù)。
一次最大只容許返回 400 條監(jiān)控?cái)?shù)據(jù), 錯(cuò)誤碼 錯(cuò)誤代碼描述Http 狀態(tài)碼語(yǔ)義 InvalidInstanceId.NotFound The InstanceId provided does not exist in our records. 404 指定的 InstanceId 不存在 MissingParameter The input parameter InstanceId that is mandatory for processing this request is not supplied. 400 缺少 InstanceId 值 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 太早 示例 請(qǐng)求示例 https://ecs.aliyuncs.com/?Action=DescribeInstanceMonitorData InstanceId=i-instnace1 StartTime=2014-10-29T23:00:00Z EndTime=2014-10-30T08:00:00Z 公共請(qǐng)求參數(shù) 返回示例 JSON格式 { RequestId: C8B26B44-0189-443E-9816-D951F59623A9, 如果秒不是 00。
則自動(dòng)取為下一分鐘開始時(shí) Period Integer 否 獲取監(jiān)控?cái)?shù)據(jù)的精度: 60 秒 600 秒 3600 秒 默認(rèn) 60 秒,格式為:YYYY-MM-DDThh:mm:ssZ, CPU: 0, TimeStamp: 2010-01-21T09:50:23Z , IntranetTX: 343, InternetTX: 343, 只能查詢到狀態(tài)非 Deleted 或者非剛剛創(chuàng)建完成尚處于 Stopped 狀態(tài)的云服務(wù)器的監(jiān)控信息, 如果秒不是 00,則返回錯(cuò)誤。
取值:DescribeInstanceMonitorData InstanceId String 是 指定監(jiān)控的實(shí)例 ID StartTime String 是 獲取數(shù)據(jù)的起始時(shí)間點(diǎn):按照 ISO8601 標(biāo)準(zhǔn)表示, InternetRX: 122。
如果指定的(EndTime StartTime)/ Peroid 400, IntranetRX: 122, 可返回的監(jiān)控內(nèi)容包括:云服務(wù)器的 CPU 使用率、云服務(wù)器分配到的內(nèi)存數(shù)、云服務(wù)器接收到的數(shù)據(jù)流量、云服務(wù)器發(fā)送的數(shù)據(jù)流量、云服務(wù)器網(wǎng)絡(luò)流量、云服務(wù)器平均帶寬,這可能是由于系統(tǒng)沒有獲得到相應(yīng)的信息。
返回參數(shù) 名稱類型描述 MonitorData InstanceMonitorDataType 實(shí)例的監(jiān)控?cái)?shù)據(jù) InstanceMonitorDataType 組成的集合。
InternetFlow: 675, BPSWrite: 200,有可能返回的監(jiān)控內(nèi)容中會(huì)缺少部分內(nèi)部,格式為:YYYY-MM-DDThh:mm:ssZ, BPSRead: 1000。
IOPSRead: 1000,。
IntranetBandwidth: 10,并需要使用 UTC 時(shí)間,則自動(dòng)取為下一分鐘開始時(shí) EndTime String 是 獲取數(shù)據(jù)的結(jié)束時(shí)間點(diǎn):按照 ISO8601 標(biāo)準(zhǔn)表示,并需要使用 UTC 時(shí)間, InternetBandwidth: 10。