Initial commit for statistics feature

This commit is contained in:
2025-12-17 20:17:32 -05:00
parent a7b659c951
commit fbd5b8b4b8
4 changed files with 446 additions and 36 deletions
+4 -2
View File
@@ -315,10 +315,12 @@ class AirlockAPIWrapper:
# Execution History
def history_logging(
self, type: List[str], checkpoint: str, policy: List[str]
self, type: List[str], checkpoint: str, policy: Optional[List[str]] = None
) -> str:
"""Retrieve execution history logs."""
payload = {"type": type, "checkpoint": checkpoint, "policy": policy}
payload = {"type": type, "checkpoint": checkpoint}
if policy is not None:
payload["policy"] = policy
result = self._post("/v1/logging/exechistories", payload)
return result["response"]["exechistories"]