class Google::Apis::RunV1alpha1::InstanceStatus

Instance represents the status of an instance of a Job.

Attributes

completion_time[RW]

Optional. Represents time when the instance was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional Corresponds to the JSON property `completionTime` @return [String]

failed[RW]

Optional. The number of times this instance exited with code > 0; +optional Corresponds to the JSON property `failed` @return [Fixnum]

index[RW]

Required. Index of the instance, unique per Job, and beginning at 0. Corresponds to the JSON property `index` @return [Fixnum]

last_exit_code[RW]

Optional. Last exit code seen for this instance. +optional Corresponds to the JSON property `lastExitCode` @return [Fixnum]

restarted[RW]

Optional. The number of times this instance was restarted. Instances are restarted according the restartPolicy configured in the Job template. + optional Corresponds to the JSON property `restarted` @return [Fixnum]

start_time[RW]

Optional. Represents time when the instance was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional Corresponds to the JSON property `startTime` @return [String]

succeeded[RW]

Optional. The number of times this instance exited with code == 0. +optional Corresponds to the JSON property `succeeded` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 658
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1alpha1/classes.rb, line 663
def update!(**args)
  @completion_time = args[:completion_time] if args.key?(:completion_time)
  @failed = args[:failed] if args.key?(:failed)
  @index = args[:index] if args.key?(:index)
  @last_exit_code = args[:last_exit_code] if args.key?(:last_exit_code)
  @restarted = args[:restarted] if args.key?(:restarted)
  @start_time = args[:start_time] if args.key?(:start_time)
  @succeeded = args[:succeeded] if args.key?(:succeeded)
end