pub struct AlertEvaluator { /* private fields */ }Expand description
Alert condition evaluator
Implementations§
Source§impl AlertEvaluator
impl AlertEvaluator
pub fn new(max_history_size: usize) -> Self
pub async fn update_metric(&self, metric_name: String, value: f64)
pub async fn evaluate_condition( &self, condition: &AlertCondition, ) -> RragResult<bool>
Auto Trait Implementations§
impl Freeze for AlertEvaluator
impl !RefUnwindSafe for AlertEvaluator
impl Send for AlertEvaluator
impl Sync for AlertEvaluator
impl Unpin for AlertEvaluator
impl !UnwindSafe for AlertEvaluator
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