pub struct Alert {Show 20 fields
pub expression: AlertExpression,
pub operator: AlertOperator,
pub threshold: f64,
pub window_seconds: i64,
pub for_seconds: i64,
pub enabled: bool,
pub silenced_until: Nullable<String>,
pub id: String,
pub crn: String,
pub name: String,
pub topic: ResourceRef,
pub state: AlertState,
pub last_value: Nullable<f64>,
pub evaluated_at: Option<String>,
pub state_changed_at: Option<String>,
pub pending_since: Option<String>,
pub evaluation_error: Option<String>,
pub delivery_error: Option<String>,
pub created_at: String,
pub updated_at: String,
}Fields§
§expression: AlertExpression§operator: AlertOperator§threshold: f64§window_seconds: i64Whole-minute window. Evaluated every minute against the last complete UTC-aligned window.
for_seconds: i64Continuous breach duration before firing; 0 fires immediately. Missing data, query failures and scheduling gaps reset a pending duration.
enabled: bool§silenced_until: Nullable<String>Mute notifications until this instant (at most 30 days ahead). Evaluation continues; null removes silence. An active alert notifies on the next evaluation after silence expires.
id: String§crn: String§name: String§topic: ResourceRef§state: AlertStateEvaluation state, independent of enabled and silenced_until. Missing data/errors do not resolve an open incident.
last_value: Nullable<f64>§evaluated_at: Option<String>§state_changed_at: Option<String>§pending_since: Option<String>§evaluation_error: Option<String>§delivery_error: Option<String>Notification remains queued for retry; metric evaluation continues.
created_at: String§updated_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Alert
impl<'de> Deserialize<'de> for Alert
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 Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin for Alert
impl UnwindSafe for Alert
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