Commit Graph
125 Commits
Author SHA1 Message Date
nmemmert 5330c8932f Feature: Auto-create incidents after 10 failed checks with rich descriptions
- Add description and failed_check_count fields to incidents table
- Update handleIncident() to use configurable threshold (default 10 checks)
- Auto-generate incident description with:
  - Number of consecutive failures
  - Last error message/reason
  - First failure timestamp
- Add API endpoints: GET/POST /api/settings/incident-threshold
- Add UI settings field to configure incident failure threshold
- Server: Get threshold from database settings (persistent across restarts)
- Default threshold: 10 consecutive failed checks per resource
2025-12-16 13:24:20 -05:00
nmemmert 6b00530a89 Fix: Change email input type from email to text to support comma-separated addresses
- Allows users to enter multiple email addresses separated by commas
- Updated both Add Resource and Edit Resource forms
- Improved placeholder text to show example of comma-separated format
2025-12-16 13:08:40 -05:00
nmemmert 02a71f980a Feature: Multi-email alerts and move resource between groups
- notificationService.js: Parse comma-separated emails from resource.email_to or global config; validate and send to each recipient
- index.js: Add PATCH /api/resources/:id/group endpoint to move resource between groups with validation and cache invalidation
- App.js: Add group selector to edit modal; wire group change to PATCH endpoint; add help text for multi-email format (comma-separated)
2025-12-16 13:03:59 -05:00
nmemmert 923c36e494 Feature: Multi-email alerts and move resource between groups
- notificationService: Parse comma-separated emails from resource.email_to or global config; validate and send to each recipient
- API: Add PATCH /api/resources/:id/group endpoint to move resource between groups with validation and cache invalidation
- UI: Add group selector to edit modal; wire group change to PATCH endpoint; add help text for multi-email format
2025-12-16 13:01:37 -05:00
nmemmert 9c1c972045 Scheduler: stagger resource checks with spacing and jitter; rebuild client 2025-12-16 12:31:30 -05:00
nmemmert 803c5adbc2 Scheduler: stagger resource checks with spacing and jitter to avoid thundering herd 2025-12-16 12:31:03 -05:00
nmemmert b4860241dd UI: Add Actions dropdown for New Group, Add Resource, Export/Import 2025-12-16 11:12:35 -05:00
nmemmert 16daa5770e Fix trend delta rendering with safe numeric coercion 2025-12-16 08:54:58 -05:00
nmemmert d4e4467c0c Add trends UI, cleanup logs, refresh build 2025-12-16 08:48:48 -05:00
nmemmert 71d1dbd5c1 chore: commit workspace changes 2025-12-16 07:56:40 -05:00
nmemmert 8bd9c6caf7 feat(ui): dashboard maintenance indicator and yellow uptime during maintenance; rebuild 2025-12-15 16:40:57 -05:00
nmemmert 65fca3d3e3 feat(maintenance): add maintenance_mode flag, API support, UI toggle; skip alerts during maintenance; rebuild client 2025-12-15 16:35:52 -05:00
nmemmert 2329362f09 UI: filters/timeline, SLA card, paginated checks/incidents 2025-12-15 16:25:31 -05:00
nmemmert c8de1257ba Add checks/incidents APIs with filters and SLA summary 2025-12-15 16:22:15 -05:00
nmemmert 49cd477991 Fix timezone formatting fallback by normalizing timestamps 2025-12-15 16:14:04 -05:00
nmemmert 3235ae3789 Fix: return ISO timestamps for dashboard stats and last checks 2025-12-15 16:11:59 -05:00
nmemmert ccae38bb4d Fix: Use ISO 8601 format (T separator) for timestamps to ensure proper timezone conversion 2025-12-15 15:03:25 -05:00
nmemmert fc7bf6976e Fix: Remove /build from client .gitignore to include production builds 2025-12-15 15:00:10 -05:00
nmemmert a93e517d34 Add timezone debugging to client time formatting 2025-12-15 14:55:49 -05:00
nmemmert 88680d478a Add PM2 ecosystem config with timezone support 2025-12-15 14:51:38 -05:00
nmemmert 92cb495ef2 Append Z suffix to timestamps so browser treats them as UTC 2025-12-15 13:45:49 -05:00
nmemmert 91bc41aa5f Fix timezone formatting in client timeUtils 2025-12-15 13:40:51 -05:00
nmemmert c7577f6ce2 Force add client build with timezone fix 2025-12-15 13:39:13 -05:00
nmemmert 28e3c6a544 Fix timezone display: client uses server timezone from settings, revert SQL offset 2025-12-15 13:36:40 -05:00
nmemmert 3653016912 Add detailed logging for timezone offset calculation 2025-12-15 13:29:16 -05:00
nmemmert 95cd2cc746 Invert timezone offset sign for correct SQL datetime conversion 2025-12-15 13:25:56 -05:00
nmemmert 6d361e6359 Add /api/debug/timezone endpoint to verify offset calculation 2025-12-15 13:20:45 -05:00
nmemmert cf62481341 Improve timezone offset calculation by comparing formatted times; add logging 2025-12-15 13:19:45 -05:00
nmemmert 5a92c7f98d Fix timezone offset using Intl API to get accurate UTC adjustment 2025-12-15 13:18:39 -05:00
nmemmert 1c8873b0aa Apply timezone offset to all check timestamp queries (dashboard, resource history) 2025-12-15 13:17:29 -05:00
nmemmert d8f303043f Fix timezone offset calculation (reverse UTC-TZ to get correct adjustment) 2025-12-15 13:16:12 -05:00
nmemmert eda5511609 Server: apply timezone offset to SQL datetime queries for correct timestamp display 2025-12-15 13:14:21 -05:00
nmemmert 0ceedaf032 Rebuild client with ErrorBoundary 2025-12-15 13:08:22 -05:00
nmemmert 0f7d11a197 Client: add ErrorBoundary to avoid blank screen and surface errors; rebuild 2025-12-15 13:04:25 -05:00
nmemmert b7f882f38b SLA: cap by retention in API; SLA UI uses effective days and shows retention notice; rebuild client 2025-12-15 12:59:51 -05:00
nmemmert c8e8d54aa8 Fix SLA queries to use parsed daysNum instead of string days 2025-12-15 12:45:24 -05:00
nmemmert ecfe725f6f Fix SLA component React hook dependencies 2025-12-15 12:38:41 -05:00
nmemmert 8c608d72a3 Add comprehensive upgrade guide 2025-12-15 12:35:12 -05:00
nmemmert 1d95b6d026 Restructure documentation into separate files with links 2025-12-15 12:33:06 -05:00
nmemmert 9892c63f3b Add comprehensive History feature documentation 2025-12-15 12:29:38 -05:00
nmemmert 5e2c236057 Fix parameter count in SQL query 2025-12-15 12:23:55 -05:00
nmemmert 234ac59fe8 Fix SQL bucketing using Julian Day calculation 2025-12-15 12:22:57 -05:00
nmemmert b1b1c36839 Add cache clear endpoint and timestamp to debug logs 2025-12-15 12:21:14 -05:00
nmemmert 07f46ce5c9 Simplify SQL bucketing query to fix aggregation 2025-12-15 12:19:00 -05:00
nmemmert e741c8cadb Enhanced debug logging to trace averaged parameter 2025-12-15 12:17:09 -05:00
nmemmert c7a49432f5 Add server-side debug logging for averaged parameter 2025-12-15 12:14:45 -05:00
nmemmert e308322e00 Add debug logging for averaged mode 2025-12-15 12:11:54 -05:00
nmemmert 3aafa07e04 Fix: use server-provided status for red/green bars in history graph 2025-12-15 12:07:48 -05:00
nmemmert c5027b339b History graph: show down status in red instead of green 2025-12-15 12:04:15 -05:00
nmemmert 63bdc6c91c Enable Show Averages by default in History view 2025-12-15 12:02:08 -05:00