Публично доступные данные
Проще всего получить текущий статус вашей страницы через
your-status-page-url/summary.json
Пример: https://instat.us/summary.json
Пример ответа:
{"page": {"name": "Instatus","url": "https://instat.us","status": "HASISSUES"},"activeIncidents": [{"name": "We're facing an issue with our API","started": "Sat Jun 11 2022 18:55:50 GMT+0000 (Coordinated Universal Time)","status": "INVESTIGATING","impact": "MAJOROUTAGE","url": "https://testing-widget.instatus.com/incident/cl4a8n3070721qtmzvts760c4"}],"activeMaintenances": [{"name": "Database maintenance","start": "Sat Jun 11 2022 18:55:54 GMT+0000 (Coordinated Universal Time)","status": "NOTSTARTEDYET","duration": "60","url": "https://testing-widget.instatus.com/maintenance/cl4a8nlv50918qtmzdlw60ivu"}]}
Возможные статусы страницы:
UPHASISSUESUNDERMAINTENANCE
Возможные статусы инцидента:
INVESTIGATINGIDENTIFIEDMONITORINGRESOLVED
Возможные статусы обслуживания:
NOTSTARTEDYETINPROGRESSCOMPLETED