[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/core](../README) / health

# health

Health checks and their configuration (the `@zerotal/core/health` subpath).
[Health](variables/Health) is a registry of named probes behind the framework's `/health`
endpoint; `critical` checks drive overall readiness and the HTTP 503 response,
while non-critical failures degrade the report without failing readiness.

## Example

```ts
import { Health } from "@zerotal/core/health";

Health.register("database", async () => {
  await DB.raw("select 1");
}, { critical: true });
```

## Interfaces

- [HealthResult](interfaces/HealthResult)
- [HealthCheckReport](interfaces/HealthCheckReport)
- [HealthReport](interfaces/HealthReport)
- [HealthConfigShape](interfaces/HealthConfigShape)
- [ResolvedHealthConfig](interfaces/ResolvedHealthConfig)

## Type Aliases

- [HealthStatus](type-aliases/HealthStatus)
- [HealthCheckFn](type-aliases/HealthCheckFn)

## Variables

- [Health](variables/Health)
