hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Autentizace
Odešlete klíč API jako bearer token. Tento koncový bod ve specifikaci uvádí specifické oprávnění, takže svému klíči udělte to nejmenší možné a místo předpokladů zkontrolujte odpověď.
Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.
Vyzvednout
Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API
Podrobnosti
The monitor, its hourly uptime and response-time history, its incidents, its Core Web Vitals readings, and — when its measured health warrants one — a migration offer. ⛔ Unknown ids answer **404, never 403**: a 403 would confirm the id exists and belongs to somebody else. Gated on `sites.view`.
Parametry
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
monitor_id (path) | string | Ano | — |
hours (query) | integer | Ne | How many hourly history points to return. |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
id | string | Ano | — |
url | string | Ano | — |
name | string | Ne | — |
state | string<unknown, up, down, paused> | Ano | ⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage. |
enabled | boolean | Ano | — |
expect_text | string | Ne | — |
site_id | string | Ne | Set only when the address happens to be one of this organisation's own sites. Navigation only — the monitor works identically without it, and must, because the product exists to… |
last_result_at | string | Ne | — |
last_up_at | string | Ne | — |
last_down_at | string | Ne | — |
created_at | string | Ano | — |
summary | UptimeSummary | Ne | — |
history | UptimeHistoryPoint[] | Ne | — |
incidents | UptimeIncident[] | Ne | — |
vitals | UptimeVitalsPoint[] | Ne | — |
migration_offer | UptimeMigrationOffer | Ne | — |
Chyby, které může tento koncový bod vrátit
401 · 404