Struct google_api_proto::google::api::servicecontrol::v1::LogEntry
source · pub struct LogEntry {
pub name: String,
pub timestamp: Option<Timestamp>,
pub severity: i32,
pub http_request: Option<HttpRequest>,
pub trace: String,
pub insert_id: String,
pub labels: BTreeMap<String, String>,
pub operation: Option<LogEntryOperation>,
pub source_location: Option<LogEntrySourceLocation>,
pub payload: Option<Payload>,
}
Expand description
An individual log entry.
Fields§
§name: String
Required. The log to which this log entry belongs. Examples: "syslog"
,
"book_log"
.
timestamp: Option<Timestamp>
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
severity: i32
The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
http_request: Option<HttpRequest>
Optional. Information about the HTTP request associated with this log entry, if applicable.
trace: String
Optional. Resource name of the trace associated with the log entry, if any.
If this field contains a relative resource name, you can assume the name is
relative to //tracing.googleapis.com
. Example:
projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824
insert_id: String
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
labels: BTreeMap<String, String>
A set of user-defined (key, value) data that provides additional information about the log entry.
operation: Option<LogEntryOperation>
Optional. Information about an operation associated with the log entry, if applicable.
source_location: Option<LogEntrySourceLocation>
Optional. Source code location information associated with the log entry, if any.
payload: Option<Payload>
The log entry payload, which can be one of multiple types.
Implementations§
source§impl LogEntry
impl LogEntry
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 Message for LogEntry
impl Message for LogEntry
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
.source§impl PartialEq for LogEntry
impl PartialEq for LogEntry
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnwindSafe for LogEntry
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request