Class: Google::Apis::BatchV1::JobStatus

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

Overview

Job status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobStatus

Returns a new instance of JobStatus.



938
939
940
# File 'lib/google/apis/batch_v1/classes.rb', line 938

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

Instance Attribute Details

#run_durationString

The duration of time that the Job spent in status RUNNING. Corresponds to the JSON property runDuration

Returns:

  • (String)


920
921
922
# File 'lib/google/apis/batch_v1/classes.rb', line 920

def run_duration
  @run_duration
end

#stateString

Job state Corresponds to the JSON property state

Returns:

  • (String)


925
926
927
# File 'lib/google/apis/batch_v1/classes.rb', line 925

def state
  @state
end

#status_eventsArray<Google::Apis::BatchV1::StatusEvent>

Job status events Corresponds to the JSON property statusEvents



930
931
932
# File 'lib/google/apis/batch_v1/classes.rb', line 930

def status_events
  @status_events
end

#task_groupsHash<String,Google::Apis::BatchV1::TaskGroupStatus>

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID. Corresponds to the JSON property taskGroups

Returns:



936
937
938
# File 'lib/google/apis/batch_v1/classes.rb', line 936

def task_groups
  @task_groups
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



943
944
945
946
947
948
# File 'lib/google/apis/batch_v1/classes.rb', line 943

def update!(**args)
  @run_duration = args[:run_duration] if args.key?(:run_duration)
  @state = args[:state] if args.key?(:state)
  @status_events = args[:status_events] if args.key?(:status_events)
  @task_groups = args[:task_groups] if args.key?(:task_groups)
end