Freshness-aware status
Marks an otherwise healthy observation stale when it exceeds the chosen threshold, preventing old results from appearing current.
Day 044 / DevOps / Reliability
A dependency-free Python CLI that turns a bounded local snapshot into a deterministic service health board with freshness-aware status.
Marks an otherwise healthy observation stale when it exceeds the chosen threshold, preventing old results from appearing current.
Summarizes service rows into a predictable overall state, with down taking priority over degraded, stale and unknown results.
Consumes only a local snapshot, limits input size and record count, omits arbitrary fields and performs no probes, restarts or configuration changes.
Five explicit health states
Configurable 1–1440 minute freshness threshold
Up to 100 service records
Two-megabyte input boundary
Deterministic name ordering
Extra fields omitted from reports
Text and JSON output
Twelve standard-library tests
Argparse, pathlib, datetime and JSON provide the complete dependency-free command-line workflow.
Validates timezone-aware timestamps, service states, unique names, optional latency and strict input limits before reporting.
Twelve tests cover status roll-ups, staleness, ordering, privacy boundaries, invalid inputs, file limits and CLI exit behavior.