API · v1.4.0
Monitors
14 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
GET /workspaces/{workspace}/monitors
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | 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. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus |
|---|---|
typekötelező | MonitorType (http, tcp, ping, dns, tls, domain, push, cron, group) |
namekötelező | 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 |
Válaszok
201422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/bulk
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus |
|---|---|
actionkötelező | pause | resume | delete | tag | untag | notify | unnotify |
idskötelező | list<integer> |
tag_id | integer |
channel_id | integer |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Válaszok
200404Not found403Authorization error401Unauthenticated
PATCH /workspaces/{workspace}/monitors/{monitor}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Kéréstörzs
| Név | Típus |
|---|---|
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 |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
DELETE /workspaces/{workspace}/monitors/{monitor}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Válaszok
204No content404Not found403Authorization error401Unauthenticated
GET /workspaces/{workspace}/monitors/{monitor}/alerts
List one monitor's alerts, newest first. Filters: kind, since (ISO 8601, inclusive)
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | 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. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/check
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Válaszok
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
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
kind | query | status_changed | changed | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/pause
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Válaszok
200404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/push-token
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Válaszok
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
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | 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. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/monitors/{monitor}/resume
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
Válaszok
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)
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
monitorkötelező | path | integer | The monitor ID |
bucketkötelező | query | minute | hour | day | |
from | query | string | |
to | query | string | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated