List a site's uptime monitors
GET
/v1/sites/{id}/uptime/monitors
const url = 'https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/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/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/uptime/monitors \ --header 'x-api-key: <x-api-key>'The site’s monitors plus the organization’s monitor quota.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”id
required
string format: uuid
The site’s UUID.
Responses
Section titled “ Responses ”The site’s monitors and the monitor quota.
Media typeapplication/json
object
monitors
required
Array<object>
A stored uptime monitor. status/status_since double as current status.
object
id
required
string format: uuid
tenant_id
required
string
site_id
required
string format: uuid
url
required
string format: uri
name
required
string | null
cadence_seconds
required
integer
timeout_seconds
required
integer
enabled
required
integer
alert_emails
required
JSON-encoded array of extra alert addresses.
string | null
alert_webhooks
required
JSON-encoded array of extra alert webhooks.
string | null
status
required
Consensus status written by the coordinator; unknown before the first probes.
string
status_since
required
Epoch ms the current status began, or null.
integer | null
last_checked_at
required
Epoch ms of the last probe, or null.
integer | null
created_at
required
integer
updated_at
required
integer
quota
required
The organization’s pooled monitor allowance.
object
count
required
Monitors currently configured across the organization.
integer
included
required
Monitors included in the subscription (2 per site, unless operator-overridden).
integer
overageEnabled
required
boolean
Example
{ "monitors": [ { "enabled": 0, "status": "up" } ]}Missing or invalid credentials.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "invalid api key"}No site with that id is visible to the caller.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "site not found"}