pub enum AlertCondition {
LatencyThreshold {
instrument_id: Option<InstrumentId>,
},
ErrorRateThreshold {
component: String,
},
DropRateThreshold {
instrument_id: Option<InstrumentId>,
},
HealthScoreThreshold,
CustomMetric {
metric_name: String,
},
ConnectionLoss {
exchange: String,
},
AnomalyDetected {
instrument_id: InstrumentId,
},
}Expand description
Types of conditions that can trigger alerts
Defines various monitoring conditions that can be configured to generate alerts when thresholds are exceeded.
Variants§
LatencyThreshold
Alert when latency exceeds threshold for an instrument
Fields
§
instrument_id: Option<InstrumentId>Optional instrument ID, None means system-wide
ErrorRateThreshold
Alert when error rate exceeds threshold for a component
DropRateThreshold
Alert when message drop rate exceeds threshold
Fields
§
instrument_id: Option<InstrumentId>Optional instrument ID, None means system-wide
HealthScoreThreshold
Alert when overall health score drops below threshold
CustomMetric
Alert based on a custom metric value
ConnectionLoss
Alert when connection to an exchange is lost
AnomalyDetected
Alert when anomaly is detected for an instrument
Fields
§
instrument_id: InstrumentIdThe instrument where anomaly was detected
Trait Implementations§
Source§impl Clone for AlertCondition
impl Clone for AlertCondition
Source§fn clone(&self) -> AlertCondition
fn clone(&self) -> AlertCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AlertCondition
impl RefUnwindSafe for AlertCondition
impl Send for AlertCondition
impl Sync for AlertCondition
impl Unpin for AlertCondition
impl UnwindSafe for AlertCondition
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