Class: Google::Apis::DataprocV1::DataprocMetricConfig

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

Overview

Dataproc metric config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataprocMetricConfig

Returns a new instance of DataprocMetricConfig.



1191
1192
1193
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1191

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

Instance Attribute Details

#metricsArray<Google::Apis::DataprocV1::Metric>

Required. Metrics sources to enable. Corresponds to the JSON property metrics



1189
1190
1191
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1189

def metrics
  @metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1196
1197
1198
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1196

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