Apps and sources
Preview

Get an app's health checks

The checks an app has, set on the app so that a change applies in every deployment that runs it: the built-in checks, the organization's custom checks that apply to it, and its own HTTP, metric, CEL and Lua checks. With `deploymentId`, each check also says what it reads in that deployment now (`outc

GET
/apps/{appId}/health
cookiebetter-auth.session_token<token>

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

appId*string
Formatuuid
deploymentId?string

The deployment of the app the results are read in.

Formatuuid

Response Body

The app's health checks.

application/json
  1. response
appId*string
Formatuuid
appName*string
deploymentId?string

The deployment the results are read in, when one was asked for.

Formatuuid
deploymentCount*integer

How many deployments run the app.

checks*array<>
watch?

How long a deployment's health is watched after a release or a sync, and what a failure does.

others*array<>

The other deployments of the app, each with how it watches after a release.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/health'
Example Response
{  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "appName": "string",  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "deploymentCount": 0,  "checks": [    {      "key": "string",      "name": "string",      "healthyWhen": "string",      "from": "builtin",      "fromLabel": "string",      "libraryId": "6780430a-772c-4fd6-a7b1-5dc852e6898f",      "appCheckId": "e66fc7a5-fedc-4531-843a-44e8eb5cd203",      "enabled": true,      "outcome": "healthy",      "message": "string",      "objects": 0    }  ],  "watch": {    "seconds": 0,    "secondsFrom": "stage",    "onFail": "pause",    "onFailFrom": "stage",    "stage": "string"  },  "others": [    {      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "name": "string",      "environment": "string",      "health": "healthy",      "watch": {        "seconds": 0,        "secondsFrom": "stage",        "onFail": "pause",        "onFailFrom": "stage",        "stage": "string"      }    }  ]}