JavaScript HSM API Dinamo
    Preparing search index...

    SessionPoolStats Interface

    A snapshot of the internal state of a session pool, for external observability.

    interface SessionPoolStats {
        key: SessionPoolKey;
        poolSize: number;
        minSize: number;
        maxSize: number;
        absoluteMaxSize: number;
        queueLength: number;
        inFlightCount: number;
        queueFullRejections: number;
        queueTimeoutRejections: number;
        sessions: readonly SessionInfo[];
    }
    Index

    Opaque identity key for this pool (host, port, authentication identity, mTLS hash when present — ADR-0002/0007).

    poolSize: number

    Total number of sessions currently active (idle + loaned).

    minSize: number

    The floor was set when this pool was created.

    maxSize: number

    The cap was set when this pool was created.

    absoluteMaxSize: number

    The absolute upper limit that the autoscaling target can never exceed.

    queueLength: number

    Number of handle requests currently waiting in the queue.

    inFlightCount: number

    Number of sessions currently assigned to active handles.

    queueFullRejections: number

    Cumulative count of requests rejected due to a full queue (SessionPoolQueueFullError).

    queueTimeoutRejections: number

    Cumulative count of requests rejected due to a queue timeout (SessionPoolQueueTimeoutError).

    sessions: readonly SessionInfo[]

    Breakdown by individual session.