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
- (::Google::Cloud::ServiceControl::V1::HttpRequest) — Optional. Information about the HTTP request associated with this log entry, if applicable.
#http_request=
def http_request=(value) -> ::Google::Cloud::ServiceControl::V1::HttpRequest
Parameter
- value (::Google::Cloud::ServiceControl::V1::HttpRequest) — Optional. Information about the HTTP request associated with this log entry, if applicable.
Returns
- (::Google::Cloud::ServiceControl::V1::HttpRequest) — Optional. Information about the HTTP request associated with this log entry, if applicable.
#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
- (::Google::Cloud::ServiceControl::V1::LogEntryOperation) — Optional. Information about an operation associated with the log entry, if applicable.
#operation=
def operation=(value) -> ::Google::Cloud::ServiceControl::V1::LogEntryOperation
Parameter
- value (::Google::Cloud::ServiceControl::V1::LogEntryOperation) — Optional. Information about an operation associated with the log entry, if applicable.
Returns
- (::Google::Cloud::ServiceControl::V1::LogEntryOperation) — Optional. Information about an operation associated with the log entry, if applicable.
#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
-
(::Google::Cloud::Logging::Type::LogSeverity) — The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
#severity=
def severity=(value) -> ::Google::Cloud::Logging::Type::LogSeverity
Parameter
-
value (::Google::Cloud::Logging::Type::LogSeverity) — The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
Returns
-
(::Google::Cloud::Logging::Type::LogSeverity) — The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
#source_location
def source_location() -> ::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation
Returns
- (::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation) — Optional. Source code location information associated with the log entry, if any.
#source_location=
def source_location=(value) -> ::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation
Parameter
- value (::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation) — Optional. Source code location information associated with the log entry, if any.
Returns
- (::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation) — Optional. Source code location information associated with the log entry, if any.
#struct_payload
def struct_payload() -> ::Google::Protobuf::Struct
Returns
- (::Google::Protobuf::Struct) — The log entry payload, represented as a structure that is expressed as a JSON object.
#struct_payload=
def struct_payload=(value) -> ::Google::Protobuf::Struct
Parameter
- value (::Google::Protobuf::Struct) — The log entry payload, represented as a structure that is expressed as a JSON object.
Returns
- (::Google::Protobuf::Struct) — The log entry payload, represented as a structure that is expressed as a JSON object.
#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
- (::Google::Protobuf::Timestamp) — The time the event described by the log entry occurred. If omitted, defaults to operation start time.
#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
- (::Google::Protobuf::Timestamp) — The time the event described by the log entry occurred. If omitted, defaults to operation start time.
#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