Add incident exports, queue SLA, and OpenWrt diff utilities

This commit is contained in:
2026-02-09 02:57:16 +03:00
parent 0fbd374823
commit f7081b78e1
7 changed files with 397 additions and 9 deletions

View File

@@ -187,3 +187,11 @@ def format_history(limit: int = 20) -> str:
f"(wait {item['wait_sec']}s, run {item['runtime_sec']}s)"
)
return "\n".join(lines)
def get_history_raw() -> list[dict[str, Any]]:
return list(_history)
def get_stats() -> dict[str, Any]:
return dict(_stats)