Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions kora_cli/alerts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Alert aggregation — KR-ALERTS-PANEL-FLIP.

Aggregates operator-attention signals from the 5 existing data
sources (OperationalStateHolder + cost-ladder holder + HealthRollup
+ audit JSONL + heartbeat probe snapshots) into the FE's
``Alert`` shape from ``web/src/lib/api.ts``.

Public surface:
* :class:`Alert` — wire-shape dataclass mirroring the TS interface
* :func:`compute_active_alerts` — single-call aggregator the
endpoint consumes
"""

from kora_cli.alerts.aggregator import Alert, compute_active_alerts

__all__ = ["Alert", "compute_active_alerts"]
Loading