pub type Breaker = BreakerInterface;
Expand description
A Breaker
contains the values needed to implement a circuit-breaker pattern within a plugin.
§Fields
generation
- The number of times a breaker has been incremented within the expiration window.successes
- The number of total success outcomes tracked within the expiration window.failures
- The number of total failure outcomes tracked within the expiration window.consecutive_successes
- The number of consecutive success outcomes.consecutive_failures
- The number of consecutive failure outcomes.expiration
- The expiration timestamp in seconds since the epoch.
Aliased Type§
struct Breaker { /* private fields */ }