pub struct ProductionAlertManager { /* private fields */ }Expand description
Production alert manager with intelligent escalation
Implementations§
Source§impl ProductionAlertManager
impl ProductionAlertManager
Sourcepub async fn new(config: AlertingConfig) -> Result<Self, MonitoringError>
pub async fn new(config: AlertingConfig) -> Result<Self, MonitoringError>
Create new production alert manager
Sourcepub async fn start(&self) -> Result<(), MonitoringError>
pub async fn start(&self) -> Result<(), MonitoringError>
Start alert manager
Sourcepub async fn stop(&self) -> Result<(), MonitoringError>
pub async fn stop(&self) -> Result<(), MonitoringError>
Stop alert manager
Sourcepub async fn evaluate_nat_attempt(
&self,
attempt: &NatTraversalAttempt,
) -> Result<(), MonitoringError>
pub async fn evaluate_nat_attempt( &self, attempt: &NatTraversalAttempt, ) -> Result<(), MonitoringError>
Evaluate NAT traversal attempt for alerts
Sourcepub async fn evaluate_nat_result(
&self,
result: &NatTraversalResult,
) -> Result<(), MonitoringError>
pub async fn evaluate_nat_result( &self, result: &NatTraversalResult, ) -> Result<(), MonitoringError>
Evaluate NAT traversal result for alerts
Sourcepub async fn get_status(&self) -> String
pub async fn get_status(&self) -> String
Get alert manager status
Sourcepub async fn trigger_alert(&self, alert: Alert) -> Result<(), MonitoringError>
pub async fn trigger_alert(&self, alert: Alert) -> Result<(), MonitoringError>
Manually trigger alert
Auto Trait Implementations§
impl Freeze for ProductionAlertManager
impl !RefUnwindSafe for ProductionAlertManager
impl Send for ProductionAlertManager
impl Sync for ProductionAlertManager
impl Unpin for ProductionAlertManager
impl !UnwindSafe for ProductionAlertManager
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