Querying Resource RPO Failure Records
Function
This API is used to query resource RPO failure records displayed on the resource monitoring platform.
Constraints and Limitations
None
URI
- URI format
- Parameter description
Parameter
Mandatory
Type
Description
project_id
Yes
String
Specifies the project ID.
For details about how to obtain the project ID, see Obtaining a Project ID.
- Request filter field description
Parameter
Mandatory
Type
Description
limit
No
Integer
Specifies the maximum number of results returned each time. The value is a positive integer from 0 to 1000. The default value is 1000.
offset
No
Integer
Specifies the offset of each request. The default value is 0. The value must be a number and cannot be negative.
start_time
No
String
Specifies the start time.
The default format is as follows: "yyyy-MM-dd HH:mm:ss.SSS", for example, 2019-04-01 12:00:00.000.
end_time
No
String
Specifies the end time.
The default format is as follows: "yyyy-MM-dd HH:mm:ss.SSS", for example, 2019-04-01 12:00:00.000.
resource_type
No
String
Specifies the resource type.
- replication: indicates to query the RPO failure records for replication pairs.
Request
Response
- Parameter description
Parameter
Type
Description
resource_rpo_statistics
Array of objects
Queries resource RPO failure records.
For details, see Table 1.
count
Integer
Specifies the number of resource RPO failure records in the list.
Table 1 resource_rpo_statistics field description Parameter
Type
Description
id
String
Specifies the ID of the resource RPO failure record.
point_time
String
Specifies the dotting time of the resource RPO failure record.
Default format: yyyy-MM-dd HH:mm
resource_num
Integer
Specifies the number of resources with RPO failures.
resource_type
String
Specifies the resource type with RPO failures.
- replication: indicates to query the RPO failure records for replication pairs.
created_at
String
Specifies the time when an RPO failure record was created.
The default format is as follows: "yyyy-MM-dd HH:mm:ss.SSS", for example, 2019-04-01 12:00:00.000.
updated_at
String
Specifies the time when an RPO failure record was updated.
The default format is as follows: "yyyy-MM-dd HH:mm:ss.SSS", for example, 2019-04-01 12:00:00.000.
- Example response
{ "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" } ] }Or
{ "error": { "message": "XXXX", "code": "XXX" } }In this example, error represents a general error, including badrequest (shown below) and itemNotFound.
{ "badrequest": { "message": "XXXX", "code": "XXX" } }
Returned Value
- Normal
Returned Value
Description
200
The server has accepted the request.
- Abnormal
Returned Value
Description
400 Bad Request
The server failed to process the request.
401 Unauthorized
You must enter a username and the password to access the requested page.
403 Forbidden
You are forbidden to access the requested page.
404 Not Found
The server could not find the requested page.
405 Method Not Allowed
You are not allowed to use the method specified in the request.
406 Not Acceptable
The response generated by the server could not be accepted by the client.
407 Proxy Authentication Required
You must use the proxy server for authentication so that the request can be processed.
408 Request Timeout
The request timed out.
409 Conflict
The request could not be processed due to a conflict.
500 Internal Server Error
Failed to complete the request because of a service error.
501 Not Implemented
Failed to complete the request because the server does not support the requested function.
502 Bad Gateway
Failed to complete the request because the server receives an invalid response from an upstream server.
503 Service Unavailable
Failed to complete the request because the system is unavailable.
504 Gateway Timeout
A gateway timeout error occurred.
Last Article: Screen Display Management
Next Article: Tenant Quota Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.