Struct google_servicecontrol1::LogEntry [−][src]
pub struct LogEntry { pub severity: Option<String>, pub text_payload: Option<String>, pub timestamp: Option<String>, pub labels: Option<HashMap<String, String>>, pub struct_payload: Option<HashMap<String, String>>, pub insert_id: Option<String>, pub proto_payload: Option<HashMap<String, String>>, pub name: Option<String>, }
An individual log entry.
This type is not used in any activity, and only used as part of another schema.
Fields
severity: Option<String>
The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
text_payload: Option<String>
The log entry payload, represented as a Unicode string (UTF-8).
timestamp: Option<String>
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
labels: Option<HashMap<String, String>>
A set of user-defined (key, value) data that provides additional information about the log entry.
struct_payload: Option<HashMap<String, String>>
The log entry payload, represented as a structure that is expressed as a JSON object.
insert_id: Option<String>
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
proto_payload: Option<HashMap<String, String>>
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.
name: Option<String>
Required. The log to which this log entry belongs. Examples: "syslog"
,
"book_log"
.
Trait Implementations
impl Default for LogEntry
[src]
impl Default for LogEntry
impl Clone for LogEntry
[src]
impl Clone for LogEntry
fn clone(&self) -> LogEntry
[src]
fn clone(&self) -> LogEntry
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LogEntry
[src]
impl Debug for LogEntry
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for LogEntry
[src]
impl Part for LogEntry