Class: Google::Apis::DataprocV1beta2::ClusterMetrics

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

Overview

Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ClusterMetrics

Returns a new instance of ClusterMetrics



322
323
324
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 322

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

Instance Attribute Details

#hdfs_metricsHash<String,Fixnum>

The HDFS metrics. Corresponds to the JSON property hdfsMetrics

Returns:

  • (Hash<String,Fixnum>)


315
316
317
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 315

def hdfs_metrics
  @hdfs_metrics
end

#yarn_metricsHash<String,Fixnum>

The YARN metrics. Corresponds to the JSON property yarnMetrics

Returns:

  • (Hash<String,Fixnum>)


320
321
322
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 320

def yarn_metrics
  @yarn_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
330
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 327

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