Apps and sources
Preview

Get one of an app's own health checks

GET
/apps/{appId}/health/checks/{checkId}
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

appId*string
Formatuuid
checkId*string
Formatuuid

Response Body

The check.

application/json
  1. response
name*string
Lengthlength <= 100
kind*string
Value in"http""metric""cel""lua"
http?
metric?
rule?

How one kind of object is read. In CEL, the way Flux writes healthCheckExprs: healthy, progressing (in progress) and failed expressions over the object, read in the order failed, in progress, healthy; the object's status, spec and metadata are variables, and the whole object is data and object. In Lua, the way Argo CD writes resource.customizations.health: a script that gets the object as obj and returns a table with status and message.

id*string
Formatuuid
enabled*boolean
Example Request
curl -X GET 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/health/checks/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "name": "string",  "kind": "http",  "http": {    "service": "string",    "port": 1,    "method": "GET",    "path": "string",    "expectStatus": 0,    "withinMillis": 100,    "failures": 1  },  "metric": {    "query": "string",    "compare": "below",    "threshold": 0.1  },  "rule": {    "group": "string",    "kind": "string",    "language": "cel",    "healthy": "string",    "progressing": "string",    "failed": "string",    "message": "string",    "script": "string"  },  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "enabled": true}