List all uptime monitors
const url = 'https://api.overwatch.weareheavy.dev/v1/uptime/monitors';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.overwatch.weareheavy.dev/v1/uptime/monitors \ --header 'x-api-key: <x-api-key>'Every uptime monitor the caller can see across the organization, joined
with its site’s hostname, plus the monitor quota. Each row’s
denormalized status/status_since doubles as current status.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”The organization’s monitors and quota.
object
A stored uptime monitor. status/status_since double as current status.
object
JSON-encoded array of extra alert addresses.
JSON-encoded array of extra alert webhooks.
Consensus status written by the coordinator; unknown before the first probes.
Epoch ms the current status began, or null.
Epoch ms of the last probe, or null.
The organization’s pooled monitor allowance.
object
Monitors currently configured across the organization.
Monitors included in the subscription (2 per site, unless operator-overridden).
Example
{ "monitors": [ { "enabled": 0, "status": "up" } ]}Missing or invalid credentials.
object
A human-readable error message.
Example
{ "error": "invalid api key"}