sql-switch - v1.0.1
    Preparing search index...

    Type Alias BreakerState

    BreakerState: "closed" | "open" | "half-open"

    State of the collector's circuit breaker.

    • closed — normal operation, writes are accepted.
    • open — the buffer overflowed (a sustained outage gets there through the retry path), writes are rejected with DatabaseUnavailableError until the cooldown is over.
    • half-open — the cooldown expired & exactly one trial flush is being attempted. Success closes the breaker, failure sends it back to open with the cooldown re-armed.