Skip to content

Conversation

@jake-low
Copy link
Contributor

@jake-low jake-low commented Mar 3, 2025

This adds a Status field to the JSON response of the root GET /api endpoint. The status is either "ok" or "warn" (an "error" would be if the endpoint wasn't reachable at all). Right now the status is warn if the last updated timestamp on the OSMX file is > 15 minutes ago, and ok otherwise. We can add additional checks later if we want.

The intent of this field is that we can set up the OSM US status page (which uses a third-party service, updown.io) to GET /api and grep for "Status": "ok" in the response. If it doesn't find that string it can show the service as degraded in the dashboard, send us emails, etc.

@bdon
Copy link
Member

bdon commented Jul 8, 2025

LGTM

@jake-low jake-low merged commit bd5c436 into main Jul 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants