feat: uptime windows (24h/7d/30d) + downtime history + ring buffer #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/1-uptime-history-downtime"
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?
Closes #1
Adds time-windowed uptime tracking and downtime history.
- Add history.go: ring buffer CheckHistory for time-windowed uptime - Add(time) records each check with timestamp - UptimeSince(window) computes uptime % for any time range - RecentDowntime(limit) extracts consecutive failure periods - ComputeWindowedUptime() returns 24h/7d/30d stats - Update main.go to track history per clanker - New /api/v1/status/{name} includes downtime_recent array - All status responses include windowed uptime data - Configurable history_size (default: 10000 checks) - Update index.html dashboard - Show 24h/7d/30d uptime windows per clanker - Color-coded: green >= 95%, yellow >= 80%, red < 80% - Responsive layout for mobile - Remove emoji from code (ASCII-safe) - Closes #1