Replace a custom health check
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
checkId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
name*stringlength <= 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.
"written""argocd""flux"note?stringlength <= 500The check as saved.
application/json- response
name*stringlength <= 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.
"written""argocd""flux"note*stringlength <= 500id*stringuuidcreatedBy?stringcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PUT 'https://wardn.example.com/api/v1/health-checks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "rule": { "kind": "string", "language": "cel" }, "allApps": true}'{ "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"}