UNPKG

@intuitionrobotics/thunderstorm

Version:
22 lines 644 B
export type HealthStatus = "pass" | "warn" | "fail"; export type HealthContribution = { status: HealthStatus; detail?: string; }; export type ModuleHealth = HealthContribution & { name: string; }; export type HealthReport = { status: HealthStatus; env: string; node: string; uptimeSec: number; timestamp: number; modules: ModuleHealth[]; version?: string; }; export interface HealthCheckContributor { getHealth(): HealthContribution | Promise<HealthContribution>; } export declare const isHealthCheckContributor: (module: any) => module is HealthCheckContributor; //# sourceMappingURL=health.d.ts.map