Class: Google::Apis::DataprocV1::StateHistory

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

Historical state information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StateHistory

Returns a new instance of StateHistory.



5519
5520
5521
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5519

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

Instance Attribute Details

#stateString

Output only. The state of the batch at this point in history. Corresponds to the JSON property state

Returns:

  • (String)


5507
5508
5509
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5507

def state
  @state
end

#state_messageString

Output only. Details about the state at this point in history. Corresponds to the JSON property stateMessage

Returns:

  • (String)


5512
5513
5514
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5512

def state_message
  @state_message
end

#state_start_timeString

Output only. The time when the batch entered the historical state. Corresponds to the JSON property stateStartTime

Returns:

  • (String)


5517
5518
5519
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5517

def state_start_time
  @state_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5524
5525
5526
5527
5528
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5524

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