Apps and sources
Preview

Get a custom health check

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

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

checkId*string
Formatuuid

Response Body

The check.

application/json
  1. response
name*string
Lengthlength <= 100
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.

allApps*boolean

Every app that has an object of the kind reads the check; otherwise only the apps in appIds.

appIds*array<>
source*string

Where the check came from.

Value in"written""argocd""flux"
note*string
Lengthlength <= 500
id*string
Formatuuid
createdBy?string
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://wardn.example.com/api/v1/health-checks/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "name": "string",  "rule": {    "group": "string",    "kind": "string",    "language": "cel",    "healthy": "string",    "progressing": "string",    "failed": "string",    "message": "string",    "script": "string"  },  "allApps": true,  "appIds": [    "507005c2-bda5-4651-98c0-390a3efeade9"  ],  "source": "written",  "note": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "createdBy": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}