Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/health-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,28 @@ Full system snapshot including memory, uptime, system info, database
response time, chain-sync lag and per-service health flags. Intended for
operators rather than load balancers — cheaper liveness/readiness paths
should be preferred for automated probing.

### Field order and grouping

The detailed health payload should preserve this top-level order to keep
JSON snapshots predictable for contributors and dashboards:

1. `success`
2. `message`
3. `timestamp`
4. `version`
5. `environment`
6. `uptime`
7. `memory`
8. `system`
9. `database`
10. `syncing`
11. `services`

Nested grouping follows the same convention:

- `memory`: `used`, `total`
- `system`: `platform`, `nodeVersion`
- `database`: `status`, `responseTime` (when connected)
- `syncing`: `status`, `latestIndexedLedger`, `observedHeadLedger`, `syncLagLedgers`
- `services`: ordered as `API Server`, `Database`, `Chain Sync`
Loading