hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Аутентификация
Передайте API-ключ в качестве маркера носителя (bearer token). Эта конечная точка не указывает конкретное разрешение в спецификации, поэтому предоставьте своему ключу минимум необходимых прав и проверьте ответ, вместо того чтобы делать предположения.
Этот эндпоинт не принимает идентификатор организации. Ваш ключ уже определяет организацию, к которой он принадлежит, и ответ ограничивается ее рамками.
Попробовать
Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему 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