Add stable v1 schema IDs and docs
This commit is contained in:
parent
bfef23fc4a
commit
7a176ea238
13 changed files with 409 additions and 8 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue