AniLink - v3.0.0
    Preparing search index...

    Interface CircuitState

    The mutable breaker record for one owner-and-host scope.

    One entry exists per (state owner, upstream host) pair, tracking the consecutive availability-failure streak, when the breaker opened (epoch milliseconds, null while closed), whether the single post-cooldown probe is currently reserved, and how many consecutive probes have failed

    interface CircuitState {
        consecutiveFailures: number;
        failedProbes: number;
        openedAt: number | null;
        probeInFlight: boolean;
    }
    Index
    consecutiveFailures: number

    Consecutive availability failures since the last success.

    failedProbes: number

    Consecutive failed half-open probes since the breaker last opened; scales the next cooldown.

    openedAt: number | null

    Epoch milliseconds at which the breaker opened, or null while closed.

    probeInFlight: boolean

    Whether the reserved half-open probe is currently in flight.