ContainerHealthcheckArgs

data class ContainerHealthcheckArgs(val interval: Output<String>? = null, val retries: Output<Int>? = null, val startInterval: Output<String>? = null, val startPeriod: Output<String>? = null, val tests: Output<List<String>>, val timeout: Output<String>? = null) : ConvertibleToJava<ContainerHealthcheckArgs>

Constructors

Link copied to clipboard
constructor(interval: Output<String>? = null, retries: Output<Int>? = null, startInterval: Output<String>? = null, startPeriod: Output<String>? = null, tests: Output<List<String>>, timeout: Output<String>? = null)

Properties

Link copied to clipboard
val interval: Output<String>? = null

Time between running the check (ms|s|m|h). Defaults to 0s.

Link copied to clipboard
val retries: Output<Int>? = null

Consecutive failures needed to report unhealthy. Defaults to 0.

Link copied to clipboard
val startInterval: Output<String>? = null

Interval before the healthcheck starts (ms|s|m|h). Defaults to 0s.

Link copied to clipboard
val startPeriod: Output<String>? = null

Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to 0s.

Link copied to clipboard
val tests: Output<List<String>>

Command to run to check health. For example, to run curl -f localhost/health set the command to be ["CMD", "curl", "-f", "localhost/health"].

Link copied to clipboard
val timeout: Output<String>? = null

Maximum time to allow one check to run (ms|s|m|h). Defaults to 0s.

Functions

Link copied to clipboard
open override fun toJava(): ContainerHealthcheckArgs