Setu-TS
    Preparing search index...

    Interface IStorageDiagnosticsSource

    Read-only storage diagnostics source — the surface every StoragePlugin instance registers under CAPABILITIES.STORAGE_DIAGNOSTICS as a MULTI provider (M98m), so multiple storage instances stay independently observable. The DiagnosticsPlugin reads every source to serve GET /v1/storage.

    Synchronous by contract: snapshot() returns already-counted, frozen data and never performs a storage operation, resolves the storage capability, or probes a backend.

    const sources = ctx.services.getAll<IStorageDiagnosticsSource>(
    CAPABILITIES.STORAGE_DIAGNOSTICS,
    );
    const snapshots = sources.map((source) => source.snapshot());

    0.8.0

    interface IStorageDiagnosticsSource {
        snapshot(): StorageDiagnosticsSnapshot;
    }
    Index