hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Doğrulama
API açarını bearer token kimi göndərin. Bu səhifə spresifikasiyada xüsusi icazə tələb etmir, buna görə də açarınıza ehtiyac duyduğu minimum səviyyədə icazə verin və güman etmək əvəzinə cavabı yoxlayın.
Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.
Sınaqdan keçir
Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın
Təfərrüatlar
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`.
Parametrlər
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
monitor_id (path) | string | Bəli | — |
hours (query) | integer | Xeyr | How many hourly history points to return. |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
id | string | Bəli | — |
url | string | Bəli | — |
name | string | Xeyr | — |
state | string<unknown, up, down, paused> | Bəli | ⛔ `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 | Bəli | — |
expect_text | string | Xeyr | — |
site_id | string | Xeyr | 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 | Xeyr | — |
last_up_at | string | Xeyr | — |
last_down_at | string | Xeyr | — |
created_at | string | Bəli | — |
summary | UptimeSummary | Xeyr | — |
history | UptimeHistoryPoint[] | Xeyr | — |
incidents | UptimeIncident[] | Xeyr | — |
vitals | UptimeVitalsPoint[] | Xeyr | — |
migration_offer | UptimeMigrationOffer | Xeyr | — |
Bu son nöqtənin qaytara biləcəyi xətalar
401 · 404