Skip to main content

GetAlertResource

Type Alias GetAlertResource 

Source
pub type GetAlertResource = Alert;

Aliased Type§

pub struct GetAlertResource {
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: i64

Whole-minute window. Evaluated every minute against the last complete UTC-aligned window.

§for_seconds: i64

Continuous 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: AlertState

Evaluation 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: String