實時監控數據:對象存儲
更新時間(jian) 2023-08-25 14:17:00
最近更新時間: 2023-08-25 14:17:00
分享文章
接口功能介紹
查詢對(dui)象存儲設備的實時監(jian)控數據。
接口約束
regionID(資源池)存(cun)在(zai),且存(cun)在(zai)對象存(cun)儲設(she)備(bei)。
URI
POST /v4/monitor/query-zos-latestmetricdata
請求參數
請求體body參數
| 參數 | 參數類型 | 是否必填 | 示例 | 說明 | 下級對象 |
|---|---|---|---|---|---|
| regionID | String | 是 | 81f7728662dd11ec810800155d307d5b | 資源池ID | |
| deviceUUIDList | Array of String | 是 | ["00cf583f-d993-5ae2-a477-a8a93e991bf4","11cf583f-a883-5ae2-a477-a8a93e991bf4"] | 查詢設備ID列表,具體值參考監控對象查詢返回字段deviceUUID | |
| deviceType | String | 是 | 本參數表示設備類型,取值范圍:1.zos_bucket:存儲桶2.zos_user:用戶 | 設備類型 | |
| pageNo | Integer | 否 | 1 | 頁碼,默認為1 | |
| pageSize | Integer | 否 | 1 | 頁大小,默認為20 |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗),默認值:800 | 800 | |
| errorCode | String | 失敗時的錯誤代碼,參見公共錯誤碼說明 | ||
| message | String | 失敗時的錯誤描述,一般為英文描述 | Success | |
| msgDesc | String | 失敗時的錯誤描述,一般為中文描述 | 成功 | |
| returnObj | Object | 返回對象 | returnObj |
表returnObj
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| result | Array of Objects | 返回數據結果 | result | |
| totalCount | Integer | 獲取對象數據條數 | 138 | |
| currentCount | Integer | 當前頁記錄數 | 10 | |
| totalPage | Integer | 總頁數 | 14 |
表result
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| regionID | String | 所屬資源池ID | 81f7728662dd11ec810800155d307d5b | |
| fUID | String | 唯一鍵 | 00cf583f-d993-5ae2-a477-a8a93e991bf4 | |
| fuserLastUpdated | String | 最近更新時間 | 2022-11-07 18:25:12 | |
| deviceUUID | String | 設備ID | 00cf583f-d993-5ae2-a477-a8a93e991bf4 | |
| itemList | Object | 監控項內容 | itemList |
表itemList
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| samplingTime | Integer | 監控數據采集時間 | 1667816712 | |
| {item1} | String | 監控項具體內容,具體監控項及含義參見 監控項列表:查詢 | 19 | |
| {item2} | String | 監控項具體內容 | 19 | |
| ... | String | 監控項具體內容 |
請求示例
POST /v4/monitor/query-zos-latestmetricdata
請求體body
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"deviceUUIDList": [
"00cf583f-d993-5ae2-a477-a8a93e991bf4"
],
"deviceType": "zos_user",
"pageNo": 1,
"pageSize": 20
}
響應示例
{
"statusCode":800,
"returnObj":{
"result":[
{
"regionID":"81f7728662dd11ec810800155d307d5b",
"fUID":"00cf583f-d993-5ae2-a477-a8a93e991bf4",
"fuserLastUpdated":"2023-06-29 11:03:01",
"deviceUUID":"00cf583f-d993-5ae2-a477-a8a93e991bf4",
"itemList":{
"samplingTime":1688007781,
"zos_user_bytes_received_bps":"0.562",
"zos_user_bytes_sent_bps":"1.183",
"zos_user_glacier_inner_bytes_received":"0",
"zos_user_glacier_inner_bytes_sent":"0",
"zos_user_glacier_inner_ops":"0",
"zos_user_glacier_month_ops":"",
"zos_user_glacier_month_public_bytes_sent":"",
"zos_user_glacier_object_nums":"",
"zos_user_glacier_public_bytes_received":"0",
"zos_user_glacier_public_bytes_sent":"0",
"zos_user_glacier_public_ops":"0",
"zos_user_glacier_size_usage":"",
"zos_user_glacier_successful_ops_percent":"0",
"zos_user_ia_inner_bytes_received":"0",
"zos_user_ia_inner_bytes_sent":"0",
"zos_user_ia_inner_ops":"0",
"zos_user_ia_month_ops":"",
"zos_user_ia_month_public_bytes_sent":"",
"zos_user_ia_object_nums":"",
"zos_user_ia_public_bytes_received":"0",
"zos_user_ia_public_bytes_sent":"0",
"zos_user_ia_public_ops":"0",
"zos_user_ia_successful_ops_percent":"0",
"zos_user_inner_bytes_received":"0",
"zos_user_inner_bytes_received_bps":"0",
"zos_user_inner_bytes_sent":"0",
"zos_user_inner_bytes_sent_bps":"0",
"zos_user_inner_ops":"0",
"zos_user_month_ops":"",
"zos_user_month_public_bytes_sent":"",
"zos_user_multi_ia_size_usage":"",
"zos_user_multi_standard_size_usage":"",
"zos_user_object_nums":"",
"zos_user_public_bytes_received":"2022",
"zos_user_public_bytes_received_bps":"0.562",
"zos_user_public_bytes_sent":"4260",
"zos_user_public_bytes_sent_bps":"1.183",
"zos_user_public_ops":"19",
"zos_user_single_ia_size_usage":"",
"zos_user_single_standard_size_usage":"",
"zos_user_size_usage":"",
"zos_user_standard_inner_bytes_received":"0",
"zos_user_standard_inner_bytes_sent":"0",
"zos_user_standard_inner_ops":"0",
"zos_user_standard_month_ops":"",
"zos_user_standard_month_public_bytes_sent":"",
"zos_user_standard_object_nums":"",
"zos_user_standard_public_bytes_received":"2022",
"zos_user_standard_public_bytes_sent":"4260",
"zos_user_standard_public_ops":"19",
"zos_user_standard_successful_ops_percent":"100",
"zos_user_successful_ops_percent":"100"
}
}
],
"totalCount":1,
"currentCount":1,
"totalPage":1
},
"errorCode":"",
"message":"Success",
"msgDesc":"成功"
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 請求成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| Monitor.DataQuery.RegionNotFound | 找不到資源池 |
| Monitor.DataQuery.ItemNameUndefined | 監控項未定義 |
| Monitor.DataQuery.QueryError | 查詢數據失敗 |
| Monitor.DataQuery.AccessFailed | 訪問內部系統失敗 |
| Monitor.DataQuery.ResponseError | 訪問內部系統返回錯誤 |
| 其他 | 參見公共錯誤碼說明 |