#[non_exhaustive]pub struct AlertEventAttributes {
pub aggregation_key: Option<String>,
pub custom: Option<BTreeMap<String, Value>>,
pub evt: Option<EventSystemAttributes>,
pub links: Option<Vec<AlertEventAttributesLinksItem>>,
pub priority: Option<AlertEventAttributesPriority>,
pub service: Option<String>,
pub status: Option<AlertEventAttributesStatus>,
pub timestamp: Option<i64>,
pub title: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Alert event attributes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.aggregation_key: Option<String>
Aggregation key of the event.
custom: Option<BTreeMap<String, Value>>
JSON object of custom attributes.
evt: Option<EventSystemAttributes>
JSON object of event system attributes.
links: Option<Vec<AlertEventAttributesLinksItem>>
The links related to the event.
priority: Option<AlertEventAttributesPriority>
The priority of the alert.
service: Option<String>
Service that triggered the event.
status: Option<AlertEventAttributesStatus>
The status of the alert.
timestamp: Option<i64>
POSIX timestamp of the event.
title: Option<String>
The title of the event.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AlertEventAttributes
impl AlertEventAttributes
pub fn new() -> AlertEventAttributes
pub fn aggregation_key(self, value: String) -> Self
pub fn custom(self, value: BTreeMap<String, Value>) -> Self
pub fn evt(self, value: EventSystemAttributes) -> Self
pub fn links(self, value: Vec<AlertEventAttributesLinksItem>) -> Self
pub fn priority(self, value: AlertEventAttributesPriority) -> Self
pub fn service(self, value: String) -> Self
pub fn status(self, value: AlertEventAttributesStatus) -> Self
pub fn timestamp(self, value: i64) -> Self
pub fn title(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for AlertEventAttributes
impl Clone for AlertEventAttributes
Source§fn clone(&self) -> AlertEventAttributes
fn clone(&self) -> AlertEventAttributes
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 AlertEventAttributes
impl Debug for AlertEventAttributes
Source§impl Default for AlertEventAttributes
impl Default for AlertEventAttributes
Source§impl<'de> Deserialize<'de> for AlertEventAttributes
impl<'de> Deserialize<'de> for AlertEventAttributes
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
Source§impl PartialEq for AlertEventAttributes
impl PartialEq for AlertEventAttributes
Source§impl Serialize for AlertEventAttributes
impl Serialize for AlertEventAttributes
impl StructuralPartialEq for AlertEventAttributes
Auto Trait Implementations§
impl Freeze for AlertEventAttributes
impl RefUnwindSafe for AlertEventAttributes
impl Send for AlertEventAttributes
impl Sync for AlertEventAttributes
impl Unpin for AlertEventAttributes
impl UnwindSafe for AlertEventAttributes
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