Get uptime percentage
GET /api/v1/monitors/{id}/uptime
GET
/api/v1/monitors/{id}/uptime
Returns the uptime percentage for a monitor over a specified number of hours.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer
Example
42Unique monitor identifier.
Query Parameters
Section titled “Query Parameters ” hours
integer
Example
24Number of hours to calculate uptime over.
Responses
Section titled “ Responses ”Uptime percentage for the specified period.
object
monitor_id
required
ID of the monitor.
integer
Example
42 hours
required
Number of hours covered.
integer
Example
24 percentage
required
Uptime percentage (0-100).
number format: double
Example
99.98Authentication credentials are missing or invalid.
Error response returned when a request fails.
object
error
required
A human-readable error message.
string
Example
monitor not foundExample
{ "error": "unauthorized"}The requested resource was not found.
Error response returned when a request fails.
object
error
required
A human-readable error message.
string
Example
monitor not foundExample
{ "error": "not found"}