Skip to content
Select themeSelect language

GET /api/operator/v1/circuit-breakers — currently-tripped breakers.

GET
/api/operator/v1/circuit-breakers
curl --request GET \
--url https://example.com/api/operator/v1/circuit-breakers
Media typeapplication/json
Array<object>

A breaker’s current state (migration 217 circuit_breaker_state), enriched for the operator/tenant status view (#626 Operations) with the rolling-window failure count and the time until the next half-open probe.

object
error_class
required
string
failures_recent
required

#626 Operations — failures recorded for this breaker tuple within the recent rolling window (circuit_breaker_failures, mig 266; “n errors / 5 min”). A real time-bounded count, not the process-local consecutive-failure tally.

integer format: int64
id
required
string format: uuid
probe_in_seconds

#626 Operations — seconds until an open breaker admits its next half-open probe (opened_at + OPEN_COOLDOWN_SECS - now), or None when the breaker is not open, has no opened_at, or the cooldown has already elapsed (a probe is admissible now). Pure derivation — no schema change.

integer | null format: int64
scope_id
required
string
scope_kind
required
string
state
required

closed | open | half_open.

string
trip_count
required
integer format: int32
Examplegenerated
[
{
"error_class": "example",
"failures_recent": 1,
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"probe_in_seconds": 1,
"scope_id": "example",
"scope_kind": "example",
"state": "example",
"trip_count": 1
}
]