ServiceServiceStatus

@Serializable
data class ServiceServiceStatus(val runningTasks: Int? = null, val desiredTasks: Int? = null, val completedTasks: Int? = null)

The status of the service's tasks. Provided only when requested as part of a ServiceList operation.

Parameters

runningTasks

The number of tasks for the service currently in the Running state.

desiredTasks

The number of tasks for the service desired to be running. For replicated services, this is the replica count from the service spec. For global services, this is computed by taking count of all tasks for the service with a Desired State other than Shutdown.

completedTasks

The number of tasks for a job that are in the Completed state. This field must be cross-referenced with the service type, as the value of 0 may mean the service is not in a job mode, or it may mean the job-mode service has no tasks yet Completed.

Constructors

Link copied to clipboard
constructor(runningTasks: Int? = null, desiredTasks: Int? = null, completedTasks: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "CompletedTasks")
val completedTasks: Int?
Link copied to clipboard
@SerialName(value = "DesiredTasks")
val desiredTasks: Int?
Link copied to clipboard
@SerialName(value = "RunningTasks")
val runningTasks: Int?