pub struct EventAttributes {
pub timestamp: Option<String>,
pub title: Option<String>,
pub text: Option<String>,
pub source: Option<String>,
pub service: Option<String>,
pub host: Option<String>,
pub status: Option<String>,
pub aggregation_key: Option<String>,
pub tags: Vec<String>,
pub attributes: Option<Value>,
}Expand description
Attributes payload of an event returned by GET /api/v2/events.
Datadog wraps each event in a { id, type, attributes } envelope. The
attributes block in turn contains a nested attributes map plus
flat fields like tags, timestamp, and service. Only the fields
the CLI uses for table rendering are surfaced as named fields; the
rest round-trips through extra so JSON / YAML output stays lossless.
Fields§
§timestamp: Option<String>Event timestamp as Datadog returns it (RFC 3339 string).
title: Option<String>Event title (often the headline shown in the Datadog UI).
text: Option<String>Free-form event body / description.
source: Option<String>Source name reported by the event producer (e.g. aws, kubernetes).
service: Option<String>Service emitting the event (when applicable).
host: Option<String>Originating host.
status: Option<String>Event status (info, warning, error, success, …).
aggregation_key: Option<String>Aggregation key — events sharing one collapse in the UI.
Tags applied to the event.
attributes: Option<Value>Nested per-source attributes Datadog returns under attributes.attributes.
Preserved as raw JSON because the schema varies by event type.
Trait Implementations§
Source§impl Clone for EventAttributes
impl Clone for EventAttributes
Source§fn clone(&self) -> EventAttributes
fn clone(&self) -> EventAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventAttributes
impl Debug for EventAttributes
Source§impl Default for EventAttributes
impl Default for EventAttributes
Source§fn default() -> EventAttributes
fn default() -> EventAttributes
Source§impl<'de> Deserialize<'de> for EventAttributes
impl<'de> Deserialize<'de> for EventAttributes
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>,
Source§impl PartialEq for EventAttributes
impl PartialEq for EventAttributes
Source§impl Serialize for EventAttributes
impl Serialize for EventAttributes
impl Eq for EventAttributes
impl StructuralPartialEq for EventAttributes
Auto Trait Implementations§
impl Freeze for EventAttributes
impl RefUnwindSafe for EventAttributes
impl Send for EventAttributes
impl Sync for EventAttributes
impl Unpin for EventAttributes
impl UnsafeUnpin for EventAttributes
impl UnwindSafe for EventAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.