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.



1241
1242
1243
# File 'lib/google/apis/batch_v1/classes.rb', line 1241

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)


1223
1224
1225
# File 'lib/google/apis/batch_v1/classes.rb', line 1223

def run_duration
  @run_duration
end

#stateString

Job state Corresponds to the JSON property state

Returns:

  • (String)


1228
1229
1230
# File 'lib/google/apis/batch_v1/classes.rb', line 1228

def state
  @state
end

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

Job status events Corresponds to the JSON property statusEvents



1233
1234
1235
# File 'lib/google/apis/batch_v1/classes.rb', line 1233

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:



1239
1240
1241
# File 'lib/google/apis/batch_v1/classes.rb', line 1239

def task_groups
  @task_groups
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1246
1247
1248
1249
1250
1251
# File 'lib/google/apis/batch_v1/classes.rb', line 1246

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