Healthcheck Endpoint #84
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/health:Returns the current health and status of the service.
Health fields:
status: (String) Always "ok". Indicates that GamesmanClassic is online.http_code: (Integer) Always HTTP200. Indicates that GamesmanClassic is online.timestamp: (Integer) ISO 8601 UTC timestamp of when the health response was made (e.g.,"2025-05-16T20:25:55Z").uptime: (String) Time GamesmanClassic has been running inXd Yh Zm Wsformat.cpu_usage: (String) Process CPU utilization percentage (e.g.,"21.2%").memory_usage: (String) Process memory percentage of total physical memory (e.g.,"10.1%").Below is an example response from
/health:{ "cpu_usage": "0.00%", "http_code": 200, "memory_usage": "0.12%", "status": "ok", "timestamp": "2025-05-29T18:07:35Z", "uptime": "0d 0h 0m 6s" }