pub struct AlertStats {
pub total_rules: usize,
pub active_alerts: usize,
pub critical_alerts: usize,
pub high_alerts: usize,
pub medium_alerts: usize,
pub low_alerts: usize,
pub total_history: usize,
}Expand description
Alert statistics
Fields§
§total_rules: usizeTotal number of alert rules
active_alerts: usizeNumber of active alerts
critical_alerts: usizeNumber of critical alerts
high_alerts: usizeNumber of high severity alerts
medium_alerts: usizeNumber of medium severity alerts
low_alerts: usizeNumber of low severity alerts
total_history: usizeTotal number of alerts in history
Trait Implementations§
Source§impl Clone for AlertStats
impl Clone for AlertStats
Source§fn clone(&self) -> AlertStats
fn clone(&self) -> AlertStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlertStats
impl Debug for AlertStats
Source§impl<'de> Deserialize<'de> for AlertStats
impl<'de> Deserialize<'de> for AlertStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AlertStats
impl RefUnwindSafe for AlertStats
impl Send for AlertStats
impl Sync for AlertStats
impl Unpin for AlertStats
impl UnwindSafe for AlertStats
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