Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::LogEntry (v1.4.1)
Stay organized with collections
Save and categorize content based on your preferences.
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
defhttp_request()->::Google::Cloud::ServiceControl::V1::HttpRequest- (::Google::Cloud::ServiceControl::V1::HttpRequest) — Optional. Information about the HTTP request associated with this log entry, if applicable.
#http_request=
defhttp_request=(value)->::Google::Cloud::ServiceControl::V1::HttpRequest- value (::Google::Cloud::ServiceControl::V1::HttpRequest) — Optional. Information about the HTTP request associated with this log entry, if applicable.
- (::Google::Cloud::ServiceControl::V1::HttpRequest) — Optional. Information about the HTTP request associated with this log entry, if applicable.
#insert_id
definsert_id()->::String- (::String) — A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
#insert_id=
definsert_id=(value)->::String- value (::String) — A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
- (::String) — A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
#labels
deflabels()->::Google::Protobuf::Map{::String=>::String}- (::Google::Protobuf::Map{::String => ::String}) — A set of user-defined (key, value) data that provides additional information about the log entry.
#labels=
deflabels=(value)->::Google::Protobuf::Map{::String=>::String}- value (::Google::Protobuf::Map{::String => ::String}) — A set of user-defined (key, value) data that provides additional information about the log entry.
- (::Google::Protobuf::Map{::String => ::String}) — A set of user-defined (key, value) data that provides additional information about the log entry.
#name
defname()->::String-
(::String) — Required. The log to which this log entry belongs. Examples:
"syslog","book_log".
#name=
defname=(value)->::String-
value (::String) — Required. The log to which this log entry belongs. Examples:
"syslog","book_log".
-
(::String) — Required. The log to which this log entry belongs. Examples:
"syslog","book_log".
#operation
defoperation()->::Google::Cloud::ServiceControl::V1::LogEntryOperation- (::Google::Cloud::ServiceControl::V1::LogEntryOperation) — Optional. Information about an operation associated with the log entry, if applicable.
#operation=
defoperation=(value)->::Google::Cloud::ServiceControl::V1::LogEntryOperation- value (::Google::Cloud::ServiceControl::V1::LogEntryOperation) — Optional. Information about an operation associated with the log entry, if applicable.
- (::Google::Cloud::ServiceControl::V1::LogEntryOperation) — Optional. Information about an operation associated with the log entry, if applicable.
#proto_payload
defproto_payload()->::Google::Protobuf::Any-
(::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].
Note: The following fields are mutually exclusive:
proto_payload,text_payload,struct_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
#proto_payload=
defproto_payload=(value)->::Google::Protobuf::Any-
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].
Note: The following fields are mutually exclusive:
proto_payload,text_payload,struct_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::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].
Note: The following fields are mutually exclusive:
proto_payload,text_payload,struct_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
#severity
defseverity()->::Google::Cloud::Logging::Type::LogSeverity-
(::Google::Cloud::Logging::Type::LogSeverity) — The severity of the log entry. The default value is
LogSeverity.DEFAULT.
#severity=
defseverity=(value)->::Google::Cloud::Logging::Type::LogSeverity-
value (::Google::Cloud::Logging::Type::LogSeverity) — The severity of the log entry. The default value is
LogSeverity.DEFAULT.
-
(::Google::Cloud::Logging::Type::LogSeverity) — The severity of the log entry. The default value is
LogSeverity.DEFAULT.
#source_location
defsource_location()->::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation- (::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation) — Optional. Source code location information associated with the log entry, if any.
#source_location=
defsource_location=(value)->::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation- value (::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation) — Optional. Source code location information associated with the log entry, if any.
- (::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation) — Optional. Source code location information associated with the log entry, if any.
#struct_payload
defstruct_payload()->::Google::Protobuf::Struct-
(::Google::Protobuf::Struct) — The log entry payload, represented as a structure that
is expressed as a JSON object.
Note: The following fields are mutually exclusive:
struct_payload,proto_payload,text_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
#struct_payload=
defstruct_payload=(value)->::Google::Protobuf::Struct-
value (::Google::Protobuf::Struct) — The log entry payload, represented as a structure that
is expressed as a JSON object.
Note: The following fields are mutually exclusive:
struct_payload,proto_payload,text_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Struct) — The log entry payload, represented as a structure that
is expressed as a JSON object.
Note: The following fields are mutually exclusive:
struct_payload,proto_payload,text_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text_payload
deftext_payload()->::String-
(::String) — The log entry payload, represented as a Unicode string (UTF-8).
Note: The following fields are mutually exclusive:
text_payload,proto_payload,struct_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text_payload=
deftext_payload=(value)->::String-
value (::String) — The log entry payload, represented as a Unicode string (UTF-8).
Note: The following fields are mutually exclusive:
text_payload,proto_payload,struct_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The log entry payload, represented as a Unicode string (UTF-8).
Note: The following fields are mutually exclusive:
text_payload,proto_payload,struct_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.
#timestamp
deftimestamp()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — The time the event described by the log entry occurred. If omitted, defaults to operation start time.
#timestamp=
deftimestamp=(value)->::Google::Protobuf::Timestamp- value (::Google::Protobuf::Timestamp) — The time the event described by the log entry occurred. If omitted, defaults to operation start time.
- (::Google::Protobuf::Timestamp) — The time the event described by the log entry occurred. If omitted, defaults to operation start time.
#trace
deftrace()->::String-
(::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=
deftrace=(value)->::String-
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
-
(::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