AniLink - v3.0.0
    Preparing search index...

    Interface CircuitOpenContext

    Context passed to the onCircuitOpen hook when the circuit breaker trips.

    interface CircuitOpenContext {
        attempt: number;
        failures: number;
        host: string;
        method: HttpMethod;
        requestId: string;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    attempt: number

    The 1-based attempt about to run.

    failures: number

    The consecutive-failure count that reached the threshold.

    host: string

    The upstream host scope the breaker tripped for.

    method: HttpMethod

    The HTTP method of the request.

    requestId: string

    Library-generated correlation ID identifying one logical request across all of its attempts; see RequestErrorContext.requestId.

    url: string

    The URL the request is being sent to.