JobStatus class
JobStatus represents the current state of a Job.
Constructors
-
JobStatus({int? active, String? completedIndexes, DateTime? completionTime, List<
JobCondition> ? conditions, int? failed, int? ready, DateTime? startTime, int? succeeded, UncountedTerminatedPods? uncountedTerminatedPods}) -
Default constructor.
const
-
JobStatus.fromJson(Map<
String, dynamic> json) -
Creates a JobStatus from JSON data.
factory
Properties
- active → int?
-
The number of pending and running pods.
final
- completedIndexes → String?
-
completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
final
- completionTime → DateTime?
-
Represents time when the job 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. The completion time is only set when the job finishes successfully.
final
-
conditions
→ List<
JobCondition> ? -
The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/.
final
- failed → int?
-
The number of pods which reached phase Failed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ready → int?
-
The number of pods which have a Ready condition.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime?
-
Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
final
- succeeded → int?
-
The number of pods which reached phase Succeeded.
final
- uncountedTerminatedPods → UncountedTerminatedPods?
-
uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a JobStatus instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited