pub struct AlertRule {Show 15 fields
pub id: Option<String>,
pub alert_rule_id: String,
pub name: Option<String>,
pub severity: Option<AlertSeverity>,
pub description: Option<String>,
pub summary: Option<String>,
pub domain: Option<AlertDomain>,
pub rule_config: Option<AlertRuleConfig>,
pub notification_channel_ids: Vec<String>,
pub status: Option<AlertRuleStatus>,
pub version: Option<i64>,
pub last_triggered: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A configured alert rule.
Fields§
§id: Option<String>The rule’s database id.
alert_rule_id: StringThe rule id.
name: Option<String>The rule’s display name.
severity: Option<AlertSeverity>The rule’s severity.
description: Option<String>The rule’s description.
summary: Option<String>A short summary applied to fired incidents.
domain: Option<AlertDomain>The rule’s domain.
rule_config: Option<AlertRuleConfig>The rule’s config.
notification_channel_ids: Vec<String>The notification channels this rule delivers to.
status: Option<AlertRuleStatus>Whether the rule is active or paused.
version: Option<i64>The rule’s version.
last_triggered: Option<String>When the rule last fired.
created_at: Option<String>When the rule was created.
updated_at: Option<String>When the rule was last updated.
extra: Map<String, Value>Any fields the server returned that this SDK does not model yet.
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 UnsafeUnpin 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