Initial commit for statistics feature
This commit is contained in:
+4
-2
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user