feat: proper push monitor lifecycle — PENDING, LATE, DOWN #34
Reference in New Issue
Block a user
Delete Branch "feat/push-monitor-states"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Push monitors no longer lie about status. Previously, newly created push monitors showed UP with 100% uptime before ever receiving a heartbeat.
State Machine (inspired by Healthchecks.io)
What changed
Engine:
TUI:
11/14 UP 1 LATESites (1⚠)for late monitorsStatus page: LATE gets amber CSS (same as PENDING)
Files (5)
internal/monitor/monitor.go— checkPush rewrite, RecordHeartbeat enrichmentinternal/monitor/monitor_test.go— updated + new test for LATE stateinternal/tui/tab_sites.go— LATE in fmtStatus + inline errorinternal/tui/tui.go— status bar + tab badge + sort orderinternal/server/server.go— LATE CSS class