Spaces:
Running on T4
Running on T4
Download backend/app/modules/api_audit/schemas.py from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/api_audit/schemas.py
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/app/modules/api_audit/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/api_audit/schemas.py
796 Bytes
| """Metadata for log lists and full sanitized bodies for individual records.""" | |
| from datetime import datetime | |
| from uuid import UUID | |
| from app.common.schemas import ResponseModel | |
| class AuditLogSummary(ResponseModel): | |
| id: UUID | |
| created_at: datetime | |
| started_at: datetime | |
| request_id: str | |
| method: str | |
| path: str | |
| route: str | None | |
| status_code: int | |
| duration_ms: float | |
| account_id: UUID | None | |
| session_id: UUID | None | |
| analysis_id: str | None | |
| analysis_revision: int | None | |
| error_code: str | None | |
| exception_type: str | None | |
| response_complete: bool | |
| service_version: str | |
| class AuditLogDetail(AuditLogSummary): | |
| request_headers: dict | |
| query_params: dict | |
| request_payload: dict | |
| response_headers: dict | |
| response_payload: dict | |