pub struct AlertEvent {
pub id: String,
pub rule_id: String,
pub severity: AlertSeverity,
pub message: String,
pub timestamp: DateTime<Utc>,
pub pipeline: Option<String>,
pub stage: Option<String>,
pub labels: HashMap<String, String>,
pub metadata: HashMap<String, String>,
pub trigger_value: Option<f64>,
pub status: AlertStatus,
}Expand description
Alert event
Fields§
§id: StringAlert ID
rule_id: StringRule ID that triggered this alert
severity: AlertSeverityAlert severity
message: StringAlert message
timestamp: DateTime<Utc>Alert timestamp
pipeline: Option<String>Associated pipeline
stage: Option<String>Associated stage
labels: HashMap<String, String>Alert labels
metadata: HashMap<String, String>Alert metadata
trigger_value: Option<f64>Metric value that triggered the alert
status: AlertStatusAlert status
Trait Implementations§
Source§impl Clone for AlertEvent
impl Clone for AlertEvent
Source§fn clone(&self) -> AlertEvent
fn clone(&self) -> AlertEvent
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 AlertEvent
impl Debug for AlertEvent
Source§impl<'de> Deserialize<'de> for AlertEvent
impl<'de> Deserialize<'de> for AlertEvent
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 AlertEvent
impl RefUnwindSafe for AlertEvent
impl Send for AlertEvent
impl Sync for AlertEvent
impl Unpin for AlertEvent
impl UnwindSafe for AlertEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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