All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gesellix.docker.remote.api.ServiceServiceStatus.kt Maven / Gradle / Ivy

There is a newer version: 2024-11-04T20-53-00
Show newest version
/**
 *
 * Please note:
 * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit this file manually.
 *
 */

@file:Suppress(
    "ArrayInDataClass",
    "EnumEntryName",
    "RemoveRedundantQualifierName",
    "UnusedImport",
)

package de.gesellix.docker.remote.api

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 * The status of the service's tasks. Provided only when requested as part of a ServiceList operation.
 *
 * @param runningTasks The number of tasks for the service currently in the Running state.
 * @param 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.
 * @param 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.
 */
@JsonClass(generateAdapter = true)
data class ServiceServiceStatus(
    // The number of tasks for the service currently in the Running state.
    @Json(name = "RunningTasks")
    var runningTasks: kotlin.Int? = null,
    // 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.
    @Json(name = "DesiredTasks")
    var desiredTasks: kotlin.Int? = null,
    // 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.
    @Json(name = "CompletedTasks")
    var completedTasks: kotlin.Int? = null,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy