name | Key in the response checks object. |
type | One or both of "liveness" and "readiness". Only checks that include the probe type run for that probe. If none match, the response is still 200 with an empty checks object. |
adapter | Must implement HealthAdapter: check(): Promise<AdapterResult>. |
timeout | Per-check timeout in milliseconds. Default 5000, unless overridden by defaults.timeout. |
schedule | Optional { intervalMs }. When kit.start() has been called, the adapter runs on that interval and results are cached (see Scheduling). |
onFail | Optional httpStatus, treatAs (for example map "fail" to "degraded" for rollup and body while adjusting HTTP rules). |
onDegraded | Present on the type; degraded HTTP status for the overall response is controlled via defaults.onDegraded (see Responses and HTTP). |