hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Autentifikacija
Pošaljite API ključ kao bearer token. Ova krajnja tačka ne navodi specifičnu dozvolu u specifikaciji, zato dodelite svom ključu minimum potrebnih ovlašćenja i proverite odgovor umesto da pretpostavljate.
Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli
Detalji
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`.
Parametri
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
monitor_id (path) | string | Da | — |
hours (query) | integer | Ne | How many hourly history points to return. |
Odgovor
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
id | string | Da | — |
url | string | Da | — |
name | string | Ne | — |
state | string<unknown, up, down, paused> | Da | ⛔ `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 | Da | — |
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 | Da | — |
summary | UptimeSummary | Ne | — |
history | UptimeHistoryPoint[] | Ne | — |
incidents | UptimeIncident[] | Ne | — |
vitals | UptimeVitalsPoint[] | Ne | — |
migration_offer | UptimeMigrationOffer | Ne | — |
Greške koje ovaj krajnji tačka može da vrati
401 · 404