TaskSpecRestartPolicy

@Serializable
data class TaskSpecRestartPolicy(val condition: TaskSpecRestartPolicy.Condition? = null, val delay: Long? = null, val maxAttempts: Long? = 0, val window: Long? = 0)

Specification for the restart policy which applies to containers created as part of this service.

Parameters

condition

Condition for restart.

delay

Delay between restart attempts.

maxAttempts

Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).

window

Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).

Constructors

Link copied to clipboard
constructor(condition: TaskSpecRestartPolicy.Condition? = null, delay: Long? = null, maxAttempts: Long? = 0, window: Long? = 0)

Types

Link copied to clipboard

Condition for restart.

Properties

Link copied to clipboard
@SerialName(value = "Condition")
val condition: TaskSpecRestartPolicy.Condition?
Link copied to clipboard
@SerialName(value = "Delay")
val delay: Long?
Link copied to clipboard
@SerialName(value = "MaxAttempts")
val maxAttempts: Long?
Link copied to clipboard
@SerialName(value = "Window")
val window: Long?