Function check_breaker

Source
pub fn check_breaker(key: &str) -> Result<Breaker, RemoteStateError>
Expand description

Checks a circuit breaker, returning the generation count, success count, failure count, consecutive success count, consecutive failure count, and expiration time.

In order for this function to succeed, a plugin’s configuration must explicitly declare a permission grant for the prefix of the key being requested. This function will panic if permission has not been granted.

See increment_breaker.

§Arguments

  • key - The key name corresponding to the state counter.