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 cae2cf8df6 feat(#3139): tell a container that gave up from one stopped on purpose
is_running collapsed every non-active state into false, so a container that
exhausted its bounded restarts read as plain "down" -- indistinguishable
from one an operator stopped deliberately. Bounding the restarts made that
gap sharper: a slow-failing agent used to grind on visibly, now it can stop
quietly.

Adds UnitState + unit_state() beside is_running rather than widening it.
is_running has ~8 call sites and nearly all are reconcile/power logic asking
"is it up? if not, start it" -- a question with two answers. Only the view
builder needs more, and it gets both facts from one systemctl call, since
is-active prints the state when not passed --quiet.

Surfaces as a flat failed flag on ContainerView and AgentStatusRow, matching
the shape those types already document: independent, orthogonally-observed
facts rather than a state machine. serde(default) keeps it order-independent
with the frontend half.

No behaviour change: nothing acts on the flag, per the ruling.
2026-08-10 23:49:33 +02:00
..
container_stats.rs hive-c0re: annotate remaining dashboard routes with utoipa 2026-07-31 23:37:05 +02:00
hive_stats.rs hive-c0re: finish chrono-clock migration 2026-08-02 02:12:19 +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 feat(#2899): add host.arch + service.version to container metrics 2026-08-01 14:21:10 +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 forge: wire ensure_all() boot-warn sites to the dashboard banner 2026-07-17 13:15:47 +02:00