Class: Google::Apis::DataprocV1beta2::YarnApplication

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

A YARN application created by a job. Application information is a subset of < code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. 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) ⇒ YarnApplication

Returns a new instance of YarnApplication



1742
1743
1744
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1742

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

Instance Attribute Details

#nameString

Required. The application name. Corresponds to the JSON property name

Returns:

  • (String)


1722
1723
1724
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1722

def name
  @name
end

#progressFloat

Required. The numerical progress of the application, from 1 to 100. Corresponds to the JSON property progress

Returns:

  • (Float)


1727
1728
1729
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1727

def progress
  @progress
end

#stateString

Required. The application state. Corresponds to the JSON property state

Returns:

  • (String)


1732
1733
1734
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1732

def state
  @state
end

#tracking_urlString

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. Corresponds to the JSON property trackingUrl

Returns:

  • (String)


1740
1741
1742
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1740

def tracking_url
  @tracking_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1747
1748
1749
1750
1751
1752
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1747

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @progress = args[:progress] if args.key?(:progress)
  @state = args[:state] if args.key?(:state)
  @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
end