pub struct LogEntryData {
pub log_name: String,
pub resource: Option<MonitoredResource>,
pub proto_payload: Option<AuditLog>,
pub insert_id: String,
pub labels: HashMap<String, String>,
pub operation: Option<LogEntryOperation>,
pub timestamp: Option<Timestamp>,
pub receive_timestamp: Option<Timestamp>,
pub severity: i32,
pub trace: String,
pub span_id: String,
pub split: Option<LogSplit>,
}Expand description
The data within all Cloud Audit Logs log entry events.
Fields§
§log_name: StringThe resource name of the log to which this log entry belongs.
resource: Option<MonitoredResource>The monitored resource that produced this log entry.
Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
proto_payload: Option<AuditLog>The log entry payload, which is always an AuditLog for Cloud Audit Log events.
insert_id: StringA unique identifier for the log entry.
labels: HashMap<String, String>A set of user-defined (key, value) data that provides additional information about the log entry.
operation: Option<LogEntryOperation>Information about an operation associated with the log entry, if applicable.
timestamp: Option<Timestamp>The time the event described by the log entry occurred.
receive_timestamp: Option<Timestamp>The time the log entry was received by Logging.
severity: i32The severity of the log entry.
trace: StringResource name of the trace associated with the log entry, if any. If it
contains a relative resource name, the name is assumed to be relative to
//tracing.googleapis.com. Example:
projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824
span_id: StringThe span ID within the trace associated with the log entry, if any.
For Trace spans, this is the same format that the Trace API v2 uses: a
16-character hexadecimal encoding of an 8-byte array, such as
000000000000004a.
split: Option<LogSplit>Information indicating this LogEntry is part of a sequence of multiple logs split from a single LogEntry.
Implementations§
Source§impl LogEntryData
impl LogEntryData
Sourcepub fn severity(&self) -> LogSeverity
pub fn severity(&self) -> LogSeverity
Returns the enum value of severity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_severity(&mut self, value: LogSeverity)
pub fn set_severity(&mut self, value: LogSeverity)
Sets severity to the provided enum value.
Trait Implementations§
Source§impl Clone for LogEntryData
impl Clone for LogEntryData
Source§fn clone(&self) -> LogEntryData
fn clone(&self) -> LogEntryData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LogEntryData
impl Debug for LogEntryData
Source§impl Default for LogEntryData
impl Default for LogEntryData
Source§impl<'de> Deserialize<'de> for LogEntryData
impl<'de> Deserialize<'de> for LogEntryData
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 Message for LogEntryData
impl Message for LogEntryData
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.