pub struct AlertManager { /* private fields */ }Expand description
Alert manager for monitoring and managing diagnostic alerts.
Implementations§
Source§impl AlertManager
impl AlertManager
Sourcepub fn with_config(config: AlertConfig, thresholds: AlertThresholds) -> Self
pub fn with_config(config: AlertConfig, thresholds: AlertThresholds) -> Self
Create alert manager with custom configuration.
Sourcepub fn set_performance_baseline(&mut self, baseline: PerformanceBaseline)
pub fn set_performance_baseline(&mut self, baseline: PerformanceBaseline)
Set performance baseline for comparison.
Sourcepub fn establish_baseline_from_metrics(
&mut self,
metrics: &ModelPerformanceMetrics,
)
pub fn establish_baseline_from_metrics( &mut self, metrics: &ModelPerformanceMetrics, )
Establish baseline from current metrics.
Sourcepub fn process_performance_metrics(
&mut self,
metrics: &ModelPerformanceMetrics,
) -> Result<Vec<ModelDiagnosticAlert>>
pub fn process_performance_metrics( &mut self, metrics: &ModelPerformanceMetrics, ) -> Result<Vec<ModelDiagnosticAlert>>
Process performance metrics and generate alerts.
Sourcepub fn process_training_dynamics(
&mut self,
dynamics: &TrainingDynamics,
) -> Result<Vec<ModelDiagnosticAlert>>
pub fn process_training_dynamics( &mut self, dynamics: &TrainingDynamics, ) -> Result<Vec<ModelDiagnosticAlert>>
Process training dynamics and generate alerts.
Sourcepub fn process_layer_stats(
&mut self,
stats: &LayerActivationStats,
) -> Result<Vec<ModelDiagnosticAlert>>
pub fn process_layer_stats( &mut self, stats: &LayerActivationStats, ) -> Result<Vec<ModelDiagnosticAlert>>
Process layer statistics and generate alerts.
Sourcepub fn add_alert(
&mut self,
alert: ModelDiagnosticAlert,
severity: AlertSeverity,
) -> Result<()>
pub fn add_alert( &mut self, alert: ModelDiagnosticAlert, severity: AlertSeverity, ) -> Result<()>
Add a new alert to the system.
Sourcepub fn resolve_alert(
&mut self,
alert_index: usize,
resolution_method: String,
) -> Result<()>
pub fn resolve_alert( &mut self, alert_index: usize, resolution_method: String, ) -> Result<()>
Resolve an alert.
Sourcepub fn get_active_alerts(&self) -> &[ActiveAlert]
pub fn get_active_alerts(&self) -> &[ActiveAlert]
Get all active alerts.
Sourcepub fn get_alerts_by_severity(
&self,
severity: AlertSeverity,
) -> Vec<&ActiveAlert>
pub fn get_alerts_by_severity( &self, severity: AlertSeverity, ) -> Vec<&ActiveAlert>
Get alerts by severity.
Sourcepub fn get_alert_statistics(&self) -> AlertStatistics
pub fn get_alert_statistics(&self) -> AlertStatistics
Get alert statistics.
Sourcepub fn clear_resolved_alerts(&mut self)
pub fn clear_resolved_alerts(&mut self)
Clear resolved alerts from active list.
Trait Implementations§
Source§impl Debug for AlertManager
impl Debug for AlertManager
Auto Trait Implementations§
impl Freeze for AlertManager
impl RefUnwindSafe for AlertManager
impl Send for AlertManager
impl Sync for AlertManager
impl Unpin for AlertManager
impl UnsafeUnpin for AlertManager
impl UnwindSafe for AlertManager
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.