Files
Yota Hamada 9653a783f8 Serve the run history of service DAGs (#4020)
Since #4009 the scheduler keeps a long-term history of the runs of each
service DAG, but nothing read it. Three API routes now serve it: the
samples in buckets, the failed, recovered and gap events, and the
availability of four windows, each with its uptime.

A sample is written only when a run ends, so the routes add the run in
progress to the uptime at the time of the query, without counting the
time the history already recorded. A DAG that is no longer a service
DAG keeps serving its history, and its live run adds no up time. A
plain DAG with no history gets 404.

StepSamples and StepAvailability become aliases of the shared schemas,
so the step routes answer as before. A conformance suite checks the
routes against a real scheduler and server.
2026-11-22 21:34:25 +09:00
..