Add target owners and alert notification management.
All checks were successful
PostgreSQL Compatibility Matrix / PG14 smoke (push) Successful in 8s
PostgreSQL Compatibility Matrix / PG15 smoke (push) Successful in 7s
PostgreSQL Compatibility Matrix / PG16 smoke (push) Successful in 7s
PostgreSQL Compatibility Matrix / PG17 smoke (push) Successful in 6s
PostgreSQL Compatibility Matrix / PG18 smoke (push) Successful in 6s

This commit implements the addition of `target_owners` and `alert_notification_events` tables, enabling management of responsible users for targets. Backend and frontend components are updated to allow viewing, assigning, and notifying target owners about critical alerts via email.
This commit is contained in:
2026-02-12 15:22:32 +01:00
parent 7acfb498b4
commit ea26ef4d33
10 changed files with 546 additions and 14 deletions

View File

@@ -1,3 +1,23 @@
from app.models.models import AlertDefinition, AuditLog, EmailNotificationSettings, Metric, QueryStat, Target, User
from app.models.models import (
AlertDefinition,
AlertNotificationEvent,
AuditLog,
EmailNotificationSettings,
Metric,
QueryStat,
Target,
TargetOwner,
User,
)
__all__ = ["User", "Target", "Metric", "QueryStat", "AuditLog", "AlertDefinition", "EmailNotificationSettings"]
__all__ = [
"User",
"Target",
"Metric",
"QueryStat",
"AuditLog",
"AlertDefinition",
"EmailNotificationSettings",
"TargetOwner",
"AlertNotificationEvent",
]