pub struct LogEvent {
pub id: String,
pub event_type: Option<String>,
pub attributes: LogEventAttributes,
}Expand description
A single log event hit returned by POST /api/v2/logs/events/search.
Fields§
§id: StringDatadog event identifier.
event_type: Option<String>Resource type marker — Datadog returns the literal string "log".
attributes: LogEventAttributesEvent payload.
Implementations§
Source§impl LogEvent
impl LogEvent
Sourcepub fn timestamp_label(&self) -> &str
pub fn timestamp_label(&self) -> &str
Timestamp string suitable for table output. Falls back to -
when Datadog omits the field.
Sourcepub fn service_label(&self) -> &str
pub fn service_label(&self) -> &str
Service string suitable for table output. Falls back to -
when Datadog omits the field.
Sourcepub fn status_label(&self) -> &str
pub fn status_label(&self) -> &str
Status string suitable for table output. Falls back to -
when Datadog omits the field.
Sourcepub fn message_label(&self) -> &str
pub fn message_label(&self) -> &str
Message string suitable for table output. Falls back to an empty string when Datadog omits the field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEvent
impl<'de> Deserialize<'de> for LogEvent
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
impl Eq for LogEvent
impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
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
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
Compare self to
key and return true if they are equal.