hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Kimlik Doğrulama
Bir API anahtarını bearer token olarak gönderin. Bu uç nokta, teknik özelliklerde belirli bir yetki belirtmemektedir; bu nedenle, varsaymak yerine anahtarınıza ihtiyaç duyduğu en az yetkiyi verin ve yanıtı kontrol edin.
Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
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`.
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
monitor_id (path) | string | Evet | — |
hours (query) | integer | Hayır | How many hourly history points to return. |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
id | string | Evet | — |
url | string | Evet | — |
name | string | Hayır | — |
state | string<unknown, up, down, paused> | Evet | ⛔ `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 | Evet | — |
expect_text | string | Hayır | — |
site_id | string | Hayır | 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 | Hayır | — |
last_up_at | string | Hayır | — |
last_down_at | string | Hayır | — |
created_at | string | Evet | — |
summary | UptimeSummary | Hayır | — |
history | UptimeHistoryPoint[] | Hayır | — |
incidents | UptimeIncident[] | Hayır | — |
vitals | UptimeVitalsPoint[] | Hayır | — |
migration_offer | UptimeMigrationOffer | Hayır | — |
Bu uç noktanın dönderebileceği hatalar
401 · 404