Class: Google::Apis::LoggingV1beta3::WriteLogEntriesRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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_labelsHash<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

Returns:

  • (Hash<String,String>)


117
118
119
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 117

def common_labels
  @common_labels
end

#entriesArray<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