Struct gapi_grpc::google::api::servicecontrol::v1::LogEntry[][src]

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: HashMap<String, String>,
    pub operation: Option<LogEntryOperation>,
    pub source_location: Option<LogEntrySourceLocation>,
    pub payload: Option<Payload>,
}

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: HashMap<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

impl LogEntry[src]

pub fn severity(&self) -> LogSeverity[src]

Returns the enum value of severity, or the default if the field is set to an invalid enum value.

pub fn set_severity(&mut self, value: LogSeverity)[src]

Sets severity to the provided enum value.

Trait Implementations

impl Clone for LogEntry[src]

impl Debug for LogEntry[src]

impl Default for LogEntry[src]

impl Message for LogEntry[src]

impl PartialEq<LogEntry> for LogEntry[src]

impl StructuralPartialEq for LogEntry[src]

Auto Trait Implementations

impl RefUnwindSafe for LogEntry

impl Send for LogEntry

impl Sync for LogEntry

impl Unpin for LogEntry

impl UnwindSafe for LogEntry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]