API · v1.4.0
Monitors
14 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
GET /workspaces/{workspace}/monitors
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
type | query | MonitorType (http, tcp, ping, dns, tls, domain, push, cron, group) | |
status | query | MonitorStatus (up, down, degraded, maintenance, pending, paused) | |
tag | query | integer | |
q | query | string | |
parent_id | query | string | |
active | query | true | false | 1 | 0 | |
beats | query | integer | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type |
|---|---|
typerequired | MonitorType (http, tcp, ping, dns, tls, domain, push, cron, group) |
namerequired | string |
description | string | null |
active | boolean |
interval_seconds | integer |
timeout_seconds | integer |
retries | integer |
retry_interval_seconds | integer |
degraded_threshold_ms | integer | null |
inverted | boolean |
parent_id | integer | null |
tags | list<object> |
config | object |
secrets | object |
notification_channel_ids | list<integer> |
alerting | object |
Responses
201422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/bulk
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type |
|---|---|
actionrequired | pause | resume | delete | tag | untag | notify | unnotify |
idsrequired | list<integer> |
tag_id | integer |
channel_id | integer |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Responses
200404Not found403Authorization error401Unauthenticated
PATCH /workspaces/{workspace}/monitors/{monitor}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Request body
| Name | Type |
|---|---|
type | MonitorType (http, tcp, ping, dns, tls, domain, push, cron, group) |
name | string |
description | string | null |
active | boolean |
interval_seconds | integer |
timeout_seconds | integer |
retries | integer |
retry_interval_seconds | integer |
degraded_threshold_ms | integer | null |
inverted | boolean |
parent_id | integer | null |
tags | list<object> |
config | object |
secrets | object |
notification_channel_ids | list<integer> |
alerting | object |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
DELETE /workspaces/{workspace}/monitors/{monitor}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Responses
204No content404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}/alerts
List one monitor's alerts, newest first. Filters: kind, since (ISO 8601, inclusive)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
kind | query | AlertKind (down, up, degraded, still_down, flapping, stable, expiring, renewed, changed, test) | |
since | query | string | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/check
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Responses
202404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}/events
List the monitor's events (status changes and changes of watched values), newest first. Filter: kind
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
kind | query | status_changed | changed | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/pause
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Responses
200404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/push-token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Responses
200404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}/results
List the monitor's raw check results, newest first. Raw results are kept for RETENTION_RAW_HOURS.
Filters: from, to (ISO 8601), status
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
from | query | string | |
to | query | string | |
status | query | MonitorStatus (up, down, degraded, maintenance, pending, paused) | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/resume
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
Responses
200404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}/rollups
List the monitor's rollups of one bucket size, oldest first. Day buckets start at midnight in the
workspace timezone. availability is (up + degraded + pending) / (total - maintenance), or null when
every check fell into maintenance. Filters: bucket (required), from, to (ISO 8601, applied to the
bucket start)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
monitorrequired | path | integer | The monitor ID |
bucketrequired | query | minute | hour | day | |
from | query | string | |
to | query | string | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated