class Google::Apis::LoggingV1beta3::LogEntry

An individual entry in a log.

Attributes

http_request[RW]

A common proto for logging HTTP requests. Corresponds to the JSON property `httpRequest` @return [Google::Apis::LoggingV1beta3::HttpRequest]

insert_id[RW]

A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the same log with the same ID as duplicates which can be removed. Corresponds to the JSON property `insertId` @return [String]

log[RW]

The log to which this entry belongs. When a log entry is ingested, the value of this field is set by the logging system. Corresponds to the JSON property `log` @return [String]

metadata[RW]

Additional data that is associated with a log entry, set by the service creating the log entry. Corresponds to the JSON property `metadata` @return [Google::Apis::LoggingV1beta3::LogEntryMetadata]

proto_payload[RW]

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. You can only pass `protoPayload` values that belong to a set of approved types. Corresponds to the JSON property `protoPayload` @return [Hash<String,Object>]

struct_payload[RW]

The log entry payload, represented as a structure that is expressed as a JSON object. Corresponds to the JSON property `structPayload` @return [Hash<String,Object>]

text_payload[RW]

The log entry payload, represented as a Unicode string (UTF-8). Corresponds to the JSON property `textPayload` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/logging_v1beta3/classes.rb, line 181
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/logging_v1beta3/classes.rb, line 186
def update!(**args)
  @metadata = args[:metadata] unless args[:metadata].nil?
  @proto_payload = args[:proto_payload] unless args[:proto_payload].nil?
  @text_payload = args[:text_payload] unless args[:text_payload].nil?
  @struct_payload = args[:struct_payload] unless args[:struct_payload].nil?
  @insert_id = args[:insert_id] unless args[:insert_id].nil?
  @log = args[:log] unless args[:log].nil?
  @http_request = args[:http_request] unless args[:http_request].nil?
end