Class: Google::Apis::BatchV1::JobStatus
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::JobStatus
- 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
-
#run_duration ⇒ String
The duration of time that the Job spent in status RUNNING.
-
#state ⇒ String
Job state Corresponds to the JSON property
state. -
#status_events ⇒ Array<Google::Apis::BatchV1::StatusEvent>
Job status events Corresponds to the JSON property
statusEvents. -
#task_groups ⇒ Hash<String,Google::Apis::BatchV1::TaskGroupStatus>
Aggregated task status for each TaskGroup in the Job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobStatus
constructor
A new instance of JobStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobStatus
Returns a new instance of JobStatus.
1097 1098 1099 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1097 def initialize(**args) update!(**args) end |
Instance Attribute Details
#run_duration ⇒ String
The duration of time that the Job spent in status RUNNING.
Corresponds to the JSON property runDuration
1079 1080 1081 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1079 def run_duration @run_duration end |
#state ⇒ String
Job state
Corresponds to the JSON property state
1084 1085 1086 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1084 def state @state end |
#status_events ⇒ Array<Google::Apis::BatchV1::StatusEvent>
Job status events
Corresponds to the JSON property statusEvents
1089 1090 1091 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1089 def status_events @status_events end |
#task_groups ⇒ Hash<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
1095 1096 1097 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1095 def task_groups @task_groups end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1102 1103 1104 1105 1106 1107 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1102 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 |