Setu-TS
    Preparing search index...

    Interface IHealthDiagnosticsSource

    Read-only health diagnostics source — the surface the HealthPlugin registers under CAPABILITIES.HEALTH_DIAGNOSTICS and the DiagnosticsPlugin consumes to serve GET /v1/health.

    Synchronous by contract: snapshot(instanceId) returns an already-built frozen DTO and never invokes an application indicator, resolves a lazy factory, or mutates state. The connector validates the returned DTO and applies the wire bounds; a source that throws is reported as a value-free collection-failed snapshot, never as a fault that changes the application's readiness.

    const source = ctx.services.get<IHealthDiagnosticsSource>(
    CAPABILITIES.HEALTH_DIAGNOSTICS,
    );
    const snapshot = source.snapshot(instanceId);

    0.8.0

    interface IHealthDiagnosticsSource {
        snapshot(instanceId: string): HealthDiagnosticsSnapshot;
    }
    Index