功能介紹
查詢當(dāng)前租戶大屏顯示中,資源的RPO超標(biāo)趨勢記錄列表。
接口約束
無
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
GET /v1/{project_id}/resource/rpo-statistics
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
項目ID。 |
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
---|---|---|---|
end_time |
否 |
String |
結(jié)束時間。默認(rèn)格式為:"yyyy-MM-dd HH:mm:ss.SSS",例:"2019-04-01 12:00:00.000"。 |
limit |
否 |
Integer |
每次請求返回結(jié)果個數(shù)限制,取值范圍為[0,1000]的正整數(shù),默認(rèn)值為1000。 最小值:0 最大值:1000 缺省值:1000 |
offset |
否 |
Integer |
每次請求開始的下標(biāo),即偏移量,默認(rèn)值為0。offset必須為數(shù)字,不能為負(fù)數(shù)。 最小值:0 缺省值:0 |
resource_type |
否 |
String |
資源類型。replication:表示查詢復(fù)制對的RPO超標(biāo)趨勢記錄。 |
start_time |
否 |
String |
開始時間。默認(rèn)格式為:"yyyy-MM-dd HH:mm:ss.SSS",例:"2019-04-01 12:00:00.000"。 |
請求參數(shù)
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用戶Token。通過調(diào)用 IAM 服務(wù)獲取用戶Token接口獲取(響應(yīng)消息頭中X-Subject-Token的值) |
響應(yīng)參數(shù)
狀態(tài)碼: 200
參數(shù) |
參數(shù)類型 |
描述 |
---|---|---|
resource_rpo_statistics |
資源的RPO超標(biāo)趨勢記錄列表。 |
|
count |
Integer |
列表中包含的資源的RPO超標(biāo)趨勢記錄個數(shù)。 |
參數(shù) |
參數(shù)類型 |
描述 |
---|---|---|
id |
String |
資源的RPO超標(biāo)趨勢記錄id。 |
point_time |
String |
資源的RPO超標(biāo)趨勢記錄打點時間。默認(rèn)格式為:"yyyy-MM-dd HH:mm"。 |
resource_num |
Integer |
RPO超標(biāo)的資源個數(shù)。 |
resource_type |
String |
RPO超標(biāo)的資源類型。replication:表示查詢復(fù)制對的RPO超標(biāo)趨勢記錄。 枚舉值:
|
created_at |
String |
創(chuàng)建時間。默認(rèn)格式為:"yyyy-MM-dd HH:mm:ss.SSS",例:"2019-04-01 12:00:00.000"。 |
updated_at |
String |
更新時間。默認(rèn)格式為:"yyyy-MM-dd HH:mm:ss.SSS",例:"2019-04-01 12:00:00.000"。 |
狀態(tài)碼: 400
狀態(tài)碼: 401
狀態(tài)碼: 403
狀態(tài)碼: 404
狀態(tài)碼: 405
狀態(tài)碼: 406
狀態(tài)碼: 407
狀態(tài)碼: 408
狀態(tài)碼: 409
狀態(tài)碼: 500
狀態(tài)碼: 501
狀態(tài)碼: 502
狀態(tài)碼: 503
狀態(tài)碼: 504
請求示例
GET https://{Endpoint}/v1/{project_id}/resource/rpo-statistics
響應(yīng)示例
狀態(tài)碼: 200
OK
{ "count" : 2, "resource_rpo_statistics" : [ { "id" : "c5f38ca9-a2e0-4c4c-aea3-35cb5caccc00", "point_time" : "2019-01-21 01:15", "resource_num" : 1, "resource_type" : "replication", "created_at" : "2019-01-21 01:15:00.916", "updated_at" : "2019-01-21 01:15:00.916" }, { "id" : "1ef74edc-9311-47c8-b092-231e64e11bee", "point_time" : "2019-01-21 01:10", "resource_num" : 2, "resource_type" : "replication", "created_at" : "2019-01-21 01:14:56.427", "updated_at" : "2019-01-21 01:14:56.427" } ] }
狀態(tài)碼
狀態(tài)碼 |
描述 |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
405 |
Method Not Allowed |
406 |
Not Acceptable |
407 |
Proxy Authentication Required |
408 |
Request Timeout |
409 |
Conflict |
500 |
Internal Server Error |
501 |
Not Implemented |
502 |
Bad Gateway |
503 |
Service Unavailable |
504 |
Gateway Timeout |
錯誤碼
請參見錯誤碼。