pub struct EndpointCircuitBreaker {
pub enabled: Option<bool>,
pub tripped_duration: u32,
pub rolling_window: u32,
pub num_buckets: u32,
pub volume_threshold: u32,
pub error_threshold_percentage: f64,
}
Fields§
§enabled: Option<bool>
true
if the module will be applied to traffic, false
to disable. default
true
if unspecified
tripped_duration: u32
Integer number of seconds after which the circuit is tripped to wait before re-evaluating upstream health
rolling_window: u32
Integer number of seconds in the statistical rolling window that metrics are retained for.
num_buckets: u32
Integer number of buckets into which metrics are retained. Max 128.
volume_threshold: u32
Integer number of requests in a rolling window that will trip the circuit. Helpful if traffic volume is low.
error_threshold_percentage: f64
Error threshold percentage should be between 0 - 1.0, not 0-100.0
Trait Implementations§
Source§impl Clone for EndpointCircuitBreaker
impl Clone for EndpointCircuitBreaker
Source§fn clone(&self) -> EndpointCircuitBreaker
fn clone(&self) -> EndpointCircuitBreaker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EndpointCircuitBreaker
impl Debug for EndpointCircuitBreaker
Source§impl Default for EndpointCircuitBreaker
impl Default for EndpointCircuitBreaker
Source§fn default() -> EndpointCircuitBreaker
fn default() -> EndpointCircuitBreaker
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointCircuitBreaker
impl<'de> Deserialize<'de> for EndpointCircuitBreaker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EndpointCircuitBreaker
impl RefUnwindSafe for EndpointCircuitBreaker
impl Send for EndpointCircuitBreaker
impl Sync for EndpointCircuitBreaker
impl Unpin for EndpointCircuitBreaker
impl UnwindSafe for EndpointCircuitBreaker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more