Setu-TS
    Preparing search index...

    Interface IHealthIndicator

    A named health indicator contributing to /health, /live, and /ready.

    const dbIndicator: IHealthIndicator = {
    name: 'database',
    async check() {
    const healthy = await db.ping();
    return { status: healthy ? 'up' : 'down' };
    },
    };

    0.1.0

    interface IHealthIndicator {
        name: string;
        readiness?: boolean;
        check(): Promise<HealthCheckResult>;
    }
    Index
    name: string

    Indicator name, unique per application.

    readiness?: boolean

    Whether the indicator counts toward readiness. Defaults to true.

    0.11.0