forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server] Add a liveness and readiness urls
Add 2 new url endpoints: - `localhost:8001/live`: simply say that the server is running. In case of succes it will response with 200 status code and a `CODECHECKER_SERVER_IS_LIVE` message. - `localhost:8001/ready`: it will run a simple query on the database. In case of success it will response with 200 status code and a `CODECHECKER_SERVER_IS_READY` message. In case of error it will response with 500 error code and a `CODECHECKER_SERVER_IS_NOT_READY` error message.
- Loading branch information
1 parent
10d5902
commit d64471c
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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