pub struct ErrorThresholds {
pub error_rate_threshold: f64,
pub consecutive_errors: u32,
pub time_window: Duration,
}
Expand description
Error monitoring configuration
Fields§
§error_rate_threshold: f64
Maximum error rate (errors per second)
consecutive_errors: u32
Maximum consecutive errors before alerting
time_window: Duration
Time window for error rate calculation
Trait Implementations§
Source§impl Clone for ErrorThresholds
impl Clone for ErrorThresholds
Source§fn clone(&self) -> ErrorThresholds
fn clone(&self) -> ErrorThresholds
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 ErrorThresholds
impl Debug for ErrorThresholds
Source§impl Default for ErrorThresholds
impl Default for ErrorThresholds
Source§impl<'de> Deserialize<'de> for ErrorThresholds
impl<'de> Deserialize<'de> for ErrorThresholds
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 ErrorThresholds
impl RefUnwindSafe for ErrorThresholds
impl Send for ErrorThresholds
impl Sync for ErrorThresholds
impl Unpin for ErrorThresholds
impl UnwindSafe for ErrorThresholds
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