Commit Graph

6 Commits

Author SHA1 Message Date
autofix-ci[bot]
b8ee80fd76
[autofix.ci] apply automated fixes 2026-01-16 17:35:04 +00:00
circlecrystalin
1ce2b10a10 Address code review feedback: refactor update function, fix parameter order, use constants, improve numeric value handling, and add database migration 2026-01-16 18:33:13 +01:00
circlecrystalin
16e19aa4c7 Refactor getMonitorNumericHistory to use UptimeCalculator instead of raw SQL 2026-01-16 17:56:47 +01:00
circlecrystalin
4a4f91e36b Refactor numeric history to use aggregation tables (same approach as ping)
- Add numeric_value, numeric_min, numeric_max fields to stat_minutely, stat_hourly, stat_daily tables
- Modify UptimeCalculator to aggregate numeric values instead of storing directly
- Update monitor.js and SNMP monitor to pass numeric values to uptime calculator
- Update chart handler to query from aggregated stat tables instead of monitor_numeric_history
- Add cleanup logic for monitor_numeric_history table (keeps last 7 days for transition)
- Fixes GC issue where monitor_numeric_history table was never cleaned up
- Prevents UI performance issues for long-running monitors
2026-01-16 12:11:16 +01:00
circlecrystalin
2cadc1ff66 Added numeric history to monitors 2026-01-16 04:18:14 +01:00
Nelson Chan
a581a85633
Feat: Use UptimeCalculator for PingChart (#4264)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-05-19 22:03:32 +02:00