Class: Google::Apis::DataprocV1::ClusterStatus

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

The status of a cluster and its instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterStatus

Returns a new instance of ClusterStatus.



1014
1015
1016
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1014

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

Instance Attribute Details

#detailString

Optional. Output only. Details of cluster's state. Corresponds to the JSON property detail

Returns:

  • (String)


995
996
997
# File 'lib/google/apis/dataproc_v1/classes.rb', line 995

def detail
  @detail
end

#stateString

Output only. The cluster's state. Corresponds to the JSON property state

Returns:

  • (String)


1000
1001
1002
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1000

def state
  @state
end

#state_start_timeString

Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)). Corresponds to the JSON property stateStartTime

Returns:

  • (String)


1006
1007
1008
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1006

def state_start_time
  @state_start_time
end

#substateString

Output only. Additional state information that includes status reported by the agent. Corresponds to the JSON property substate

Returns:

  • (String)


1012
1013
1014
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1012

def substate
  @substate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1019
1020
1021
1022
1023
1024
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1019

def update!(**args)
  @detail = args[:detail] if args.key?(:detail)
  @state = args[:state] if args.key?(:state)
  @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
  @substate = args[:substate] if args.key?(:substate)
end