CLICommands
circuit-breaker
snug circuit-breaker <COMMAND>Distributed circuit breaker management.
Subcommands
| Command | What it does |
|---|---|
create | Create or update a circuit breaker |
status | Check circuit status |
report-failure | Report a failure |
report-success | Report a success |
list | List circuits |
get | Get circuit details |
reset | Reset a circuit to closed state |
trip | Manually trip a circuit open (admin) |
stats | Show detailed circuit statistics |
history | Show circuit state-change history |
delete | Delete a circuit |
Run snug circuit-breaker <command> --help for that command's own options.
The global options apply everywhere.
Examples
snug circuit-breaker create -n api-service -d 'Upstream API circuit' -t 5 -w 60 -r 30 -m 3
snug circuit-breaker list
snug circuit-breaker list -s open -d
snug circuit-breaker get -n api-service
snug circuit-breaker status -n api-service -d
snug circuit-breaker stats -n api-service
snug circuit-breaker history -n api-service -l 10
snug circuit-breaker report-failure -n api-service -t timeout -m 'upstream timed out' -d 1500
snug circuit-breaker report-success -n api-service -d 120
snug circuit-breaker reset -n api-service -r 'manual recovery'
snug circuit-breaker trip -n api-service -r 'maintenance window'
snug circuit-breaker delete -n api-service --forceNext
- API reference - every endpoint these commands call.
- CLI reference - global options, output modes, and exit codes.