Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/stats
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 9c1cfafeb5 refactor(hive-c0re): one producer for the readiness verdict
`get_health_ready` computed "degraded iff any warning is crit" inline and
wrapped it in a private `ReadyBody`. The swarm status publisher needs the
same verdict, and the warnings module's own doc already states why it must
not compute its own: two systems independently deciding what counts as
unhealthy is how they end up disagreeing.

The disagreement would also be silent. Each side would look internally
consistent, and the day a second degraded condition is added to one of
them, the dashboard and the swarm view would report different things about
the same host with nothing to flag it.

`warnings::readiness()` is now the single producer and `Readiness` the
single type. `ReadyBody` is deleted rather than made public: the endpoint
keeps the part that genuinely is its own, the mapping onto an HTTP status
code, and serves the shared document as its body.
2026-08-16 13:12:59 +02:00
..
container_stats.rs fix(#3245): resolve the remaining intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
hive_stats.rs fix(#3245): resolve broken intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
host_stats.rs feat(#3139): tell a container that gave up from one stopped on purpose 2026-08-10 23:49:33 +02:00
mod.rs feat(#2007): export per-agent container cpu/mem/disk via otel 2026-07-15 22:51:31 +02:00
otel_metrics.rs fix(#3245): resolve the remaining intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
sweep_health.rs fold hive-c0re module tree into the daemon binary + drop dead pub items surfaced by bin-only (#2513) 2026-07-16 10:43:08 +02:00
warnings.rs refactor(hive-c0re): one producer for the readiness verdict 2026-08-16 13:12:59 +02:00