Apps and sources
Preview

List the organization's health checks

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.

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

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

Response Body

The health checks.

application/json
  1. response
builtins*array<>
custom*array<>
defaults*
Example Request
curl -X GET 'https://wardn.example.com/api/v1/health-checks'
Example Response
{  "builtins": [    {      "key": "rollouts",      "name": "string",      "healthyWhen": "string"    }  ],  "custom": [    {      "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"    }  ],  "defaults": {    "watchSeconds": 0,    "onFail": "pause",    "qualifyNote": "string"  }}