Class: Google::Apis::LoggingV2::SummaryField

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb

Overview

A field from the LogEntry that is added to the summary line (https://cloud. google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SummaryField

Returns a new instance of SummaryField.



3884
3885
3886
# File 'lib/google/apis/logging_v2/classes.rb', line 3884

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldString

Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name. Corresponds to the JSON property field

Returns:

  • (String)


3882
3883
3884
# File 'lib/google/apis/logging_v2/classes.rb', line 3882

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3889
3890
3891
# File 'lib/google/apis/logging_v2/classes.rb', line 3889

def update!(**args)
  @field = args[:field] if args.key?(:field)
end