Apps and sources
Preview

Read health checks from Argo CD or Flux text

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.

POST
/health-checks/parse
cookiebetter-auth.session_token<token>

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

application/json
  1. body
format*string
Value in"argocd""flux"
text*string
Lengthlength <= 524288

Response Body

The checks found.

application/json
  1. response
items*array<>
Example Request
curl -X POST 'https://wardn.example.com/api/v1/health-checks/parse' \  -H 'Content-Type: application/json' \  -d '{  "format": "argocd",  "text": "string"}'
Example Response
{  "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"    }  ]}