pub struct AlertRule {
pub id: String,
pub name: String,
pub description: String,
pub severity: AlertSeverity,
pub condition: AlertCondition,
pub evaluation_frequency: Duration,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
}Expand description
Alert rule definition
Fields§
§id: StringRule identifier
name: StringRule name
description: StringRule description
severity: AlertSeverityAlert severity
condition: AlertConditionRule condition
evaluation_frequency: DurationEvaluation frequency
labels: HashMap<String, String>Alert labels
annotations: HashMap<String, String>Annotations
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlertRule
impl<'de> Deserialize<'de> for AlertRule
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 AlertRule
impl RefUnwindSafe for AlertRule
impl Send for AlertRule
impl Sync for AlertRule
impl Unpin for AlertRule
impl UnwindSafe for AlertRule
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