Skip to content

Conversation

@AEstrellaS
Copy link
Member

  • /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 HTTP 200. 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 in Xd Yh Zm Ws format.
      • 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"
      }

@AEstrellaS AEstrellaS self-assigned this May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants