Class: Google::Apis::DataprocV1::ClusterMetrics

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

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

Constructor Details

#initialize(**args) ⇒ ClusterMetrics

Returns a new instance of ClusterMetrics.



1598
1599
1600
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1598

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


1591
1592
1593
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1591

def hdfs_metrics
  @hdfs_metrics
end

#yarn_metricsHash<String,Fixnum>

YARN metrics. Corresponds to the JSON property yarnMetrics

Returns:

  • (Hash<String,Fixnum>)


1596
1597
1598
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1596

def yarn_metrics
  @yarn_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1603
1604
1605
1606
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1603

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