-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new API endpoints (logs, evidence) (#1527)
* Added logs api endpoints * Updates to tail function and tests * Updates * Fix type annotations * Add test log file * API response fixes, unit tests * Fix unit test * Avoid double logging to file handler * Update logger * Make num_lines an optional query parameter instead * Int validation and fix unit test * Update OpenAPI spec * Updates per review comments
- Loading branch information
Showing
9 changed files
with
314 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
2024-08-08 16:52:48,110 [INFO] uvicorn.error | Application startup complete. | ||
2024-08-08 16:52:48,124 [INFO] uvicorn.error | Started server process [1232189] | ||
2024-08-08 16:52:48,124 [INFO] uvicorn.error | Waiting for application startup. | ||
2024-08-08 16:52:48,124 [INFO] uvicorn.error | Application startup complete. | ||
2024-08-08 16:52:48,136 [INFO] uvicorn.error | Started server process [1232191] | ||
2024-08-08 16:52:48,137 [INFO] uvicorn.error | Waiting for application startup. | ||
2024-08-08 16:52:48,137 [INFO] uvicorn.error | Application startup complete. | ||
2024-08-08 16:52:50,468 [INFO] uvicorn.access | 127.0.0.1:39730 - "GET /api/logs/api_server/100 HTTP/1.1" 200 | ||
2024-08-08 16:53:26,287 [INFO] uvicorn.access | 127.0.0.1:53206 - "GET /api/logs/logs/ed6c72f82d42/100 HTTP/1.1" 200 | ||
2024-08-08 16:53:51,856 [INFO] uvicorn.access | 127.0.0.1:33544 - "GET /openapi.yaml HTTP/1.1" 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.