Class: Google::Apis::LoggingV2::SummaryField
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::SummaryField
- 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://docs. cloud.google.com/logging/docs/view/logs-explorer-interface#preferences) for a query in the Logs Explorer.
Instance Attribute Summary collapse
-
#field ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SummaryField
constructor
A new instance of SummaryField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SummaryField
Returns a new instance of SummaryField.
4339 4340 4341 |
# File 'lib/google/apis/logging_v2/classes.rb', line 4339 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ String
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
4337 4338 4339 |
# File 'lib/google/apis/logging_v2/classes.rb', line 4337 def field @field end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4344 4345 4346 |
# File 'lib/google/apis/logging_v2/classes.rb', line 4344 def update!(**args) @field = args[:field] if args.key?(:field) end |