pub struct AlertManager { /* private fields */ }
Expand description
Alert manager
Implementations§
Source§impl AlertManager
impl AlertManager
Sourcepub fn new(config: AlertConfig) -> Self
pub fn new(config: AlertConfig) -> Self
Create new alert manager
Sourcepub async fn process_security_event(
&mut self,
event: &SecurityEvent,
) -> Result<()>
pub async fn process_security_event( &mut self, event: &SecurityEvent, ) -> Result<()>
Process security event and generate alerts if needed
Sourcepub async fn process_performance_metrics(
&mut self,
metrics: &HashMap<String, u64>,
) -> Result<()>
pub async fn process_performance_metrics( &mut self, metrics: &HashMap<String, u64>, ) -> Result<()>
Process performance metrics and generate alerts
Sourcepub fn cleanup_alert_history(&mut self, max_age_seconds: u64)
pub fn cleanup_alert_history(&mut self, max_age_seconds: u64)
Clean up old alert tracking data
Auto Trait Implementations§
impl Freeze for AlertManager
impl RefUnwindSafe for AlertManager
impl Send for AlertManager
impl Sync for AlertManager
impl Unpin for AlertManager
impl UnwindSafe for AlertManager
Blanket Implementations§
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
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