class Google::Apis::ServicecontrolV1::LogEntry
An individual log entry.
Attributes
A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message. Corresponds to the JSON property `httpRequest` @return [Google::Apis::ServicecontrolV1::HttpRequest]
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id. Corresponds to the JSON property `insertId` @return [String]
A set of user-defined (key, value) data that provides additional information about the log entry. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Required. The log to which this log entry belongs. Examples: `“syslog”`, `“ book_log”`. Corresponds to the JSON property `name` @return [String]
Additional information about a potentially long-running operation with which a log entry is associated. Corresponds to the JSON property `operation` @return [Google::Apis::ServicecontrolV1::LogEntryOperation]
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog
. Corresponds to the JSON property `protoPayload` @return [Hash<String,Object>]
The severity of the log entry. The default value is `LogSeverity.DEFAULT`. Corresponds to the JSON property `severity` @return [String]
Additional information about the source code location that produced the log entry. Corresponds to the JSON property `sourceLocation` @return [Google::Apis::ServicecontrolV1::LogEntrySourceLocation]
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>]
The log entry payload, represented as a Unicode string (UTF-8). Corresponds to the JSON property `textPayload` @return [String]
The time the event described by the log entry occurred. If omitted, defaults to operation start time. Corresponds to the JSON property `timestamp` @return [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` Corresponds to the JSON property `trace` @return [String]
Public Class Methods
# File lib/google/apis/servicecontrol_v1/classes.rb, line 1140 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/servicecontrol_v1/classes.rb, line 1145 def update!(**args) @http_request = args[:http_request] if args.key?(:http_request) @insert_id = args[:insert_id] if args.key?(:insert_id) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @operation = args[:operation] if args.key?(:operation) @proto_payload = args[:proto_payload] if args.key?(:proto_payload) @severity = args[:severity] if args.key?(:severity) @source_location = args[:source_location] if args.key?(:source_location) @struct_payload = args[:struct_payload] if args.key?(:struct_payload) @text_payload = args[:text_payload] if args.key?(:text_payload) @timestamp = args[:timestamp] if args.key?(:timestamp) @trace = args[:trace] if args.key?(:trace) end