Add incident exports, queue SLA, and OpenWrt diff utilities
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user