pub struct ShmMonitorConfig {
pub check_interval_secs: u64,
pub alert_threshold: f64,
pub recovery_threshold: f64,
pub max_consecutive_failures: u32,
pub ewma_alpha: f64,
pub ewma_latency_alpha: f64,
pub alert_auto_resolve_secs: u64,
}Expand description
Configuration for StorageHealthMonitor.
Fields§
§check_interval_secs: u64Seconds between automatic health-check cycles (informational; caller drives timing).
alert_threshold: f64Success-rate threshold below which a probe becomes Degraded (default 0.80).
recovery_threshold: f64Success-rate threshold above which a probe transitions from Critical/Degraded
to Recovering (default 0.90).
max_consecutive_failures: u32Number of consecutive failures before a probe becomes Critical.
ewma_alpha: f64EWMA smoothing factor α for success_rate (0 < α ≤ 1; default 0.1).
ewma_latency_alpha: f64EWMA smoothing factor α for latency_ms (0 < α ≤ 1; default 0.2).
alert_auto_resolve_secs: u64TTL seconds for auto-resolvable alerts (0 = no auto-resolve).
Trait Implementations§
Source§impl Clone for ShmMonitorConfig
impl Clone for ShmMonitorConfig
Source§fn clone(&self) -> ShmMonitorConfig
fn clone(&self) -> ShmMonitorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShmMonitorConfig
impl Debug for ShmMonitorConfig
Auto Trait Implementations§
impl Freeze for ShmMonitorConfig
impl RefUnwindSafe for ShmMonitorConfig
impl Send for ShmMonitorConfig
impl Sync for ShmMonitorConfig
impl Unpin for ShmMonitorConfig
impl UnsafeUnpin for ShmMonitorConfig
impl UnwindSafe for ShmMonitorConfig
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more