hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Аутентификација
Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
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.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
monitor_id (path) | string | Да | — |
hours (query) | integer | Не | How many hourly history points to return. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | string | Да | — |
url | string | Да | — |
name | string | Не | — |
state | string<unknown, up, down, paused> | Да | ⛔ 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 | Да | — |
expect_text | string | Не | — |
site_id | string | Не | 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 | Не | — |
last_up_at | string | Не | — |
last_down_at | string | Не | — |
created_at | string | Да | — |
summary | UptimeSummary | Не | — |
history | UptimeHistoryPoint[] | Не | — |
incidents | UptimeIncident[] | Не | — |
vitals | UptimeVitalsPoint[] | Не | — |
migration_offer | UptimeMigrationOffer | Не | — |
Грешке које ова крајња тачка може вратити
401 · 404