feat(maintenance): add maintenance_mode flag, API support, UI toggle; skip alerts during maintenance; rebuild client

This commit is contained in:
nmemmert committed 2025-12-15 16:35:52 -05:00
1 parent 2329362f09
commit 65fca3d3e3
9 files changed
+88 -16

No files matched your search

+5 -1
View File
@@ -49,7 +49,11 @@ class Scheduler {
LIMIT 12
`).all(resource.id);
stats.recentChecks = recentChecks.reverse();
await notificationService.sendAlert(resource, incident, stats);
if (resource.maintenance_mode) {
console.log(`Resource ${resource.name} in maintenance; skipping alert`);
} else {
await notificationService.sendAlert(resource, incident, stats);
}
}
console.log(`Checked ${resource.name}: ${result.status} (${result.response_time}ms)`);