Apps and sources
PreviewGet a custom health check
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
checkId*stringFormat
uuidThe check.
application/json- response
name*stringLength
length <= 100rule*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*booleanEvery app that has an object of the kind reads the check; otherwise only the apps in appIds.
appIds*array<>source*stringWhere the check came from.
Value in
"written""argocd""flux"note*stringLength
length <= 500id*stringFormat
uuidcreatedBy?stringcreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timecurl -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"}