Class: Google::Apis::ServicecontrolV1::LogEntry
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::LogEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb
Overview
An individual log entry.
Instance Attribute Summary collapse
-
#insert_id ⇒ String
A unique ID for the log entry used for deduplication.
-
#labels ⇒ Hash<String,String>
A set of user-defined (key, value) data that provides additional information about the log entry.
-
#name ⇒ String
Required.
-
#proto_payload ⇒ Hash<String,Object>
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.
-
#severity ⇒ String
The severity of the log entry.
-
#struct_payload ⇒ Hash<String,Object>
The log entry payload, represented as a structure that is expressed as a JSON object.
-
#text_payload ⇒ String
The log entry payload, represented as a Unicode string (UTF-8).
-
#timestamp ⇒ String
The time the event described by the log entry occurred.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogEntry
constructor
A new instance of LogEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LogEntry
Returns a new instance of LogEntry
574 575 576 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#insert_id ⇒ String
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
542 543 544 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 542 def insert_id @insert_id end |
#labels ⇒ Hash<String,String>
A set of user-defined (key, value) data that provides additional
information about the log entry.
Corresponds to the JSON property labels
530 531 532 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 530 def labels @labels end |
#name ⇒ String
Required. The log to which this log entry belongs. Examples: "syslog",
"book_log".
Corresponds to the JSON property name
548 549 550 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 548 def name @name end |
#proto_payload ⇒ Hash<String,Object>
The log entry payload, represented as a protocol buffer that is
expressed as a JSON object. You can only pass protoPayload
values that belong to a set of approved types.
Corresponds to the JSON property protoPayload
566 567 568 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 566 def proto_payload @proto_payload end |
#severity ⇒ String
The severity of the log entry. The default value is
LogSeverity.DEFAULT.
Corresponds to the JSON property severity
536 537 538 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 536 def severity @severity end |
#struct_payload ⇒ Hash<String,Object>
The log entry payload, represented as a structure that
is expressed as a JSON object.
Corresponds to the JSON property structPayload
554 555 556 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 554 def struct_payload @struct_payload end |
#text_payload ⇒ String
The log entry payload, represented as a Unicode string (UTF-8).
Corresponds to the JSON property textPayload
559 560 561 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 559 def text_payload @text_payload end |
#timestamp ⇒ String
The time the event described by the log entry occurred. If
omitted, defaults to operation start time.
Corresponds to the JSON property timestamp
572 573 574 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 572 def @timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
579 580 581 582 583 584 585 586 587 588 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 579 def update!(**args) @labels = args[:labels] if args.key?(:labels) @severity = args[:severity] if args.key?(:severity) @insert_id = args[:insert_id] if args.key?(:insert_id) @name = args[:name] if args.key?(:name) @struct_payload = args[:struct_payload] if args.key?(:struct_payload) @text_payload = args[:text_payload] if args.key?(:text_payload) @proto_payload = args[:proto_payload] if args.key?(:proto_payload) @timestamp = args[:timestamp] if args.key?(:timestamp) end |