pub struct AlertStats {
pub total_active_alerts: usize,
pub total_rules: usize,
pub alerts_by_severity: HashMap<AlertSeverity, usize>,
pub alerts_by_status: HashMap<AlertStatus, usize>,
pub last_evaluation: DateTime<Utc>,
}Expand description
Alert statistics
Fields§
§total_active_alerts: usize§total_rules: usize§alerts_by_severity: HashMap<AlertSeverity, usize>§alerts_by_status: HashMap<AlertStatus, usize>§last_evaluation: DateTime<Utc>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