Retrieve the Last Poll Information for a Monitor
GET/query/objects/:id/poll-info
Call this API to obtain the last poll information for a specific monitor, including details about the metric group. The Monitor ID must be provided to fetch the corresponding poll information.
Request
Path Parameters
The unique identifier for the monitor. This Monitor ID is necessary to retrieve the last poll information and associated metric group details.
Responses
- 200
- 400
- 403
- 500
Successful response. The request was successful, and the last poll information for the specified monitor was returned.
- application/json
- Schema
- Example (from schema)
Schema
result object
{
"result": {
"Availability": 1722858880,
"Network Interface": 1722859000,
"Routing Protocol": 1722858880
}
}
The request was invalid. Possible reasons could include missing required parameters or incorrect parameter values.
- application/json
- Schema
- Example (from schema)
Schema
{
"response-code": 400,
"status": "fail",
"message": "Bad request",
"error.code": "MD031"
}
Request Forbidden. The request was forbidden. The client does not have permission to access this resource.
- application/json
- Schema
- Example (from schema)
Schema
{
"response-code": 403,
"message": "Unauthorized access: Client is not allowed to access API",
"error.code": "MD022"
}
Internal server error. An internal server error occurred while processing the request.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
result object[]
{
"result": [
{
"response-code": 500,
"status": "fail",
"message": "Internal server exception, Possible reason: Cannot invoke \"String.length()\" because \"content\" is null",
"error.code": "MD031",
"error": "io.vertx.core.json.jackson.DatabindCodec.createParser(DatabindCodec.java:116)\n\tat io.vertx.core.json.jackson.DatabindCodec.fromString(DatabindCodec.java:90)\n\tat io.vertx.core.json.Json.decodeValue(Json.java:83)\n\tat io.vertx.core.json.Json.decodeValue(Json.java:95)\n\tat"
}
]
}