Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::LogEntry (v1.4.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

defhttp_request()->::Google::Cloud::ServiceControl::V1::HttpRequest
Returns

#http_request=

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

#insert_id

definsert_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=

definsert_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

deflabels()->::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=

deflabels=(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

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

#name=

defname=(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

defoperation()->::Google::Cloud::ServiceControl::V1::LogEntryOperation
Returns

#operation=

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

#proto_payload

defproto_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].

    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
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].

    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.

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].

    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
Returns

#severity=

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

#source_location

defsource_location()->::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation
Returns

#source_location=

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

#struct_payload

defstruct_payload()->::Google::Protobuf::Struct
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns

#timestamp=

deftimestamp=(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

deftrace()->::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=

deftrace=(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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.