You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(monitoring): POST /check still reports a measured 0% uptime and 0 ms latency as null (sibling of #4685) #4702
A measured 0.0 (an agent down for the whole 24 h window, or a measured 0 ms latency) is falsy, so these paths report null, which consumers read as "never measured":
POST /api/monitoring/agents/{name}/check (routers/monitoring.py:575), and the MCP check tool that wraps it
the first-ever-check path of GET /api/monitoring/agents/{name} (routers/monitoring.py:425)
#4699 (Fixes #4685) fixed only the router's own builder. The issue named only the router, so the PR was correct for its scope; this one is the sibling found by the merge train on 2026-11-21.
Acceptance criteria
Both fields use is not None, so only a missing measurement is null
A test drives POST /api/monitoring/agents/{name}/check (or perform_health_check) for an agent whose only checks are unreachable / 0 ms and asserts 0.0 for both fields; reverting to truthiness turns it red
Activity
merge-train: sys.modules lint fix + learnings fragment (Abilityai#4702)…
fix(monitoring): report measured 0% uptime and 0 ms latency from perf…