Health check

Cockatrice provides a health endpoint which returns 200 if Cockatrice is live or ready to response to queries.

Liveness probe

To get the current liveness probe is following:

$ curl -s -X GET http://localhost:8080/health/liveness | jq .

You can see the result in JSON format. The result of the above command is:

{
  "liveness": true,
  "status": {
    "code": 200,
    "description": "Request fulfilled, document follows",
    "phrase": "OK"
  },
  "time": 2.288818359375e-05
}

Readiness probe

To get the current readiness probe is following:

$ curl -s -X GET http://localhost:8080/health/readiness | jq .

You can see the result in JSON format. The result of the above command is:

{
  "readiness": true,
  "status": {
    "code": 200,
    "description": "Request fulfilled, document follows",
    "phrase": "OK"
  },
  "time": 0.0001971721649169922
}