pub struct AlertThresholds {
pub max_latency_ms: f64,
pub max_packet_loss: f64,
pub min_bandwidth_bps: f64,
pub max_jitter_ms: f64,
pub max_error_rate: f64,
}Expand description
Per-metric thresholds used to generate ChmHealthAlert values.
Warning alerts fire at 80 % of the configured threshold; critical alerts fire at 100 %.
Fields§
§max_latency_ms: f64Maximum acceptable latency in milliseconds (default: 500 ms).
max_packet_loss: f64Maximum acceptable packet-loss fraction (default: 0.05).
min_bandwidth_bps: f64Minimum acceptable bandwidth in bits-per-second (default: 100 000 bps).
max_jitter_ms: f64Maximum acceptable jitter in milliseconds (default: 100 ms).
max_error_rate: f64Maximum acceptable error-rate fraction (default: 0.10).
Implementations§
Source§impl AlertThresholds
impl AlertThresholds
Sourcepub fn warning_latency_ms(&self) -> f64
pub fn warning_latency_ms(&self) -> f64
Returns the warning threshold for latency.
Sourcepub fn warning_packet_loss(&self) -> f64
pub fn warning_packet_loss(&self) -> f64
Returns the warning threshold for packet loss.
Sourcepub fn warning_bandwidth_bps(&self) -> f64
pub fn warning_bandwidth_bps(&self) -> f64
Returns the warning threshold for bandwidth (inverted — lower is worse).
Sourcepub fn warning_jitter_ms(&self) -> f64
pub fn warning_jitter_ms(&self) -> f64
Returns the warning threshold for jitter.
Sourcepub fn warning_error_rate(&self) -> f64
pub fn warning_error_rate(&self) -> f64
Returns the warning threshold for error rate.
Trait Implementations§
Source§impl Clone for AlertThresholds
impl Clone for AlertThresholds
Source§fn clone(&self) -> AlertThresholds
fn clone(&self) -> AlertThresholds
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 AlertThresholds
impl Debug for AlertThresholds
Auto Trait Implementations§
impl Freeze for AlertThresholds
impl RefUnwindSafe for AlertThresholds
impl Send for AlertThresholds
impl Sync for AlertThresholds
impl Unpin for AlertThresholds
impl UnsafeUnpin for AlertThresholds
impl UnwindSafe for AlertThresholds
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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