Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::LogEntry (v1.0.1)

Reference documentation and code samples for the Service Control API V1 API class Google::Cloud::ServiceControl::V1::LogEntry.

An individual log entry.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#http_request

def http_request() -> ::Google::Cloud::ServiceControl::V1::HttpRequest
Returns

#http_request=

def http_request=(value) -> ::Google::Cloud::ServiceControl::V1::HttpRequest
Parameter
Returns

#insert_id

def insert_id() -> ::String
Returns
  • (::String) — A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

#insert_id=

def insert_id=(value) -> ::String
Parameter
  • value (::String) — A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
Returns
  • (::String) — A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — A set of user-defined (key, value) data that provides additional information about the log entry.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — A set of user-defined (key, value) data that provides additional information about the log entry.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — A set of user-defined (key, value) data that provides additional information about the log entry.

#name

def name() -> ::String
Returns
  • (::String) — Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. The log to which this log entry belongs. Examples: "syslog", "book_log".
Returns
  • (::String) — Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

#operation

def operation() -> ::Google::Cloud::ServiceControl::V1::LogEntryOperation
Returns

#operation=

def operation=(value) -> ::Google::Cloud::ServiceControl::V1::LogEntryOperation
Parameter
Returns

#proto_payload

def proto_payload() -> ::Google::Protobuf::Any
Returns
  • (::Google::Protobuf::Any) — The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is [AuditLog][google.cloud.audit.AuditLog].

#proto_payload=

def proto_payload=(value) -> ::Google::Protobuf::Any
Parameter
  • value (::Google::Protobuf::Any) — The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is [AuditLog][google.cloud.audit.AuditLog].
Returns
  • (::Google::Protobuf::Any) — The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is [AuditLog][google.cloud.audit.AuditLog].

#severity

def severity() -> ::Google::Cloud::Logging::Type::LogSeverity
Returns

#severity=

def severity=(value) -> ::Google::Cloud::Logging::Type::LogSeverity
Parameter
Returns

#source_location

def source_location() -> ::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation
Returns

#source_location=

def source_location=(value) -> ::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation
Parameter
Returns

#struct_payload

def struct_payload() -> ::Google::Protobuf::Struct
Returns

#struct_payload=

def struct_payload=(value) -> ::Google::Protobuf::Struct
Parameter
Returns

#text_payload

def text_payload() -> ::String
Returns
  • (::String) — The log entry payload, represented as a Unicode string (UTF-8).

#text_payload=

def text_payload=(value) -> ::String
Parameter
  • value (::String) — The log entry payload, represented as a Unicode string (UTF-8).
Returns
  • (::String) — The log entry payload, represented as a Unicode string (UTF-8).

#timestamp

def timestamp() -> ::Google::Protobuf::Timestamp
Returns

#timestamp=

def timestamp=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — The time the event described by the log entry occurred. If omitted, defaults to operation start time.
Returns

#trace

def trace() -> ::String
Returns
  • (::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

#trace=

def trace=(value) -> ::String
Parameter
  • value (::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
Returns
  • (::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