Add dynamic loading of standard alert references
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 8s
PostgreSQL Compatibility Matrix / PG17 smoke (push) Successful in 7s
PostgreSQL Compatibility Matrix / PG18 smoke (push) Successful in 7s

Replaced hardcoded standard alert metadata with API-driven data. This change ensures the standard alert information is dynamically loaded from the backend, improving maintainability and scalability. Also adjusted the frontend to handle cases where no data is available.
This commit is contained in:
2026-02-13 08:24:55 +01:00
parent 45d2173d1e
commit 7619757ed5
4 changed files with 139 additions and 89 deletions

View File

@@ -72,3 +72,12 @@ class AlertStatusResponse(BaseModel):
alerts: list[AlertStatusItem]
warning_count: int
alert_count: int
class StandardAlertReferenceItem(BaseModel):
key: str
name: str
checks: str
comparison: str
warning: str
alert: str