Class: Google::Apis::LoggingV1beta3::WriteLogEntriesRequest
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV1beta3::WriteLogEntriesRequest
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/logging_v1beta3/classes.rb,
generated/google/apis/logging_v1beta3/representations.rb,
generated/google/apis/logging_v1beta3/representations.rb
Overview
The parameters to WriteLogEntries.
Instance Attribute Summary collapse
-
#common_labels ⇒ Hash<String,String>
Metadata labels that apply to all log entries in this request, so that you don' t have to repeat them in each log entry's
metadata.labels
field. -
#entries ⇒ Array<Google::Apis::LoggingV1beta3::LogEntry>
Log entries to insert.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WriteLogEntriesRequest
constructor
A new instance of WriteLogEntriesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WriteLogEntriesRequest
Returns a new instance of WriteLogEntriesRequest
124 125 126 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_labels ⇒ Hash<String,String>
Metadata labels that apply to all log entries in this request, so that you don'
t have to repeat them in each log entry's metadata.labels
field. If any of
the log entries contains a (key, value) with the same key that is in
commonLabels
, then the entry's (key, value) overrides the one in
commonLabels
.
Corresponds to the JSON property commonLabels
117 118 119 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 117 def common_labels @common_labels end |
#entries ⇒ Array<Google::Apis::LoggingV1beta3::LogEntry>
Log entries to insert.
Corresponds to the JSON property entries
122 123 124 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 122 def entries @entries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 132 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 129 def update!(**args) @common_labels = args[:common_labels] unless args[:common_labels].nil? @entries = args[:entries] unless args[:entries].nil? end |