Postgres WAL & archive health snapshot
Changed onReturns the latest WAL/archive health snapshot recorded by the background health monitor for a Postgres external service. Powers the warning banner on the service detail page when the disk is filling up due to stale replication slots, archive backlog, or misconfigured archive_command.
Returns 404 when no snapshot exists yet (probe hasn't run, or the service isn't Postgres). When the last check could not run (a database on a worker whose agent predates the WAL probe, or cannot be reached), the 404 has type https://temps.sh/probs/wal-health-not-checked and carries reason and checked_at, so the page can say the check is not happening.
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Path parameters
External service ID
Response
Latest WAL health snapshot
Changes
- breaking
added
subschema #4subschema #5to thewarnings/itemsresponse propertyoneOflist for the response status - info
added the optional property
archive_libraryto the response with the status - info
added the optional property
archive_status_unreadableto the response with the status
1 more change in this revision
- breaking