method IHealthService.registerIndicator
IHealthService.registerIndicator(
name: string,
): void

Registers a health indicator.

Parameters

name: string

Indicator name (must be unique; throws on duplicate)

Health check function

Return Type

void

Throws

Error

If an indicator with the same name is already registered

Usage

import { type IHealthService } from "common/src/index.ts";