Add custom health checks
Adds every check in the request, or none.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
Idempotency-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
checks*array<>1 <= items <= 200The checks as saved.
application/json- response
items*array<>curl -X POST 'https://wardn.example.com/api/v1/health-checks' \ -H 'Content-Type: application/json' \ -d '{ "checks": [ { "name": "string", "rule": { "kind": "string", "language": "cel" }, "allApps": true } ]}'{ "items": [ { "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" } ]}List the organization's health checks GET
The built-in checks, the custom checks the organization wrote or imported (each for a kind of object, in CEL the way Flux writes it or in Lua the way Argo CD does), and the defaults a stage may change.
Read health checks from Argo CD or Flux text POST
Reads an argocd-cm `resource.customizations.health.<group>_<kind>` block, or a Flux `healthCheckExprs` block, as it is written, into checks to review. Nothing is saved.