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 (const: unstable) · 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§fn eq(&self, other: &EventAttributes) -> bool
fn eq(&self, other: &EventAttributes) -> bool
self and other values to be equal, and is used by ==.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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more