Add stable v1 schema IDs and docs

This commit is contained in:
Luna 2026-06-16 04:05:12 -07:00
parent bfef23fc4a
commit 7a176ea238
13 changed files with 409 additions and 8 deletions

View file

@ -15,6 +15,7 @@ import time
from datetime import datetime
from pathlib import Path
from . import schemas
from .alert import Alert, Severity
from .config import Config
from .system import Process, SystemState
@ -173,6 +174,7 @@ def capture(alerts: list[Alert], state: SystemState, cfg: Config) -> Path:
cfg, base.with_suffix(".log").name, alerts, lineage, now.timestamp(), host)
report = {
"schema": schemas.ALERT_SNAPSHOT_V1,
"time": now.isoformat(),
"host": host,
"severity": str(severity),