feat: add alert history

This commit is contained in:
Christian Krakau-Louis
2026-05-22 23:18:32 +02:00
parent c384200098
commit af66c93829
17 changed files with 469 additions and 12 deletions
+4
View File
@@ -97,6 +97,10 @@ from API responses.
| `notifications.summary_send_hour_utc` | UTC hour for scheduled summaries | `8` | `7` |
| `notifications.summary_weekday_utc` | UTC weekday for weekly summaries, where 0 is Monday | `0` | `4` |
Alert history is stored in the database-backed `alert_history` table. Current
retention is indefinite; prune old resolved rows according to your operational
policy if long-term storage size matters.
### Cloudflare Integration
| Variable | Description | Default | Example |
+1 -1
View File
@@ -83,7 +83,7 @@ Follow-up:
## Later Milestones
- Notifications and alert rules. Apprise delivery, test notifications, alert-rule evaluation, and scheduled daily/weekly summaries are in place; alert history remains.
- Notifications and alert rules. Apprise delivery, test notifications, alert-rule evaluation, scheduled daily/weekly summaries, and alert history are in place.
- DNS health and Cloudflare read-only inspection.
- Guided setup and operator health screens.
- Forensic/RUF report support.
+2 -4
View File
@@ -107,7 +107,7 @@ Exit criteria:
## Milestone 7: Notifications and Alert Rules
Status: In progress
Status: Complete
Goal: notify administrators when action is needed.
@@ -117,9 +117,7 @@ Delivered:
- Alert rules for new sender source, compliance drop, DMARC failures above threshold, and missing reports.
- Notification settings UI can evaluate active alerts and send the current alert summary on demand.
- Daily and weekly DMARC summary notifications, including scheduled delivery and manual preview/send controls.
Planned:
- Alert history.
- Alert history records active and resolved alerts with first-seen, last-seen, observed-count, and payload metadata.
Exit criteria:
- A user can receive meaningful alerts without opening the dashboard daily.
+1 -1
View File
@@ -167,7 +167,7 @@ Status: Complete for the delivered reporting milestone. Alert-specific dashboard
- [x] Add Apprise notification delivery and test notification support
- [x] Add alert rules for new sender source, compliance drop, DMARC failures above threshold, and missing reports
- [x] Add daily and weekly summary notifications
- [ ] Add alert history
- [x] Add alert history
- [ ] DNS health guidance and Cloudflare read-only inspection
- [ ] Guided setup and operator health pages
- [ ] Forensic/RUF report support
+6
View File
@@ -63,6 +63,12 @@ Configure daily or weekly summaries in **Settings** > **Notifications**:
- **Preview Summary**: shows message volume, report count, and active alert count
- **Send Summary Now**: sends the selected daily or weekly summary immediately
### Alert History
Alert history appears in **Settings** > **Notifications** after alerts have been
evaluated or sent. Each row shows whether the alert is active or resolved, how
many times it has been observed, and the latest alert detail.
### Integration Notifications
Apprise supports email, Slack, Teams, Discord, generic webhooks, and many other