ContainerHealthcheck constructor

const ContainerHealthcheck({
  1. Input<String?>? interval,
  2. Input<int?>? retries,
  3. Input<String?>? startInterval,
  4. Input<String?>? startPeriod,
  5. Input<List<String>?>? tests,
  6. Input<String?>? timeout,
})

Creates a new ContainerHealthcheck. interval Time between running the check (ms|s|m|h). Defaults to 0s. retries Consecutive failures needed to report unhealthy. Defaults to 0. startInterval Interval before the healthcheck starts (ms|s|m|h). Defaults to 0s. startPeriod Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to 0s. tests Command to run to check health. For example, to run curl -f localhost/health set the command to be ["CMD", "curl", "-f", "localhost/health"]. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. timeout Maximum time to allow one check to run (ms|s|m|h). Defaults to 0s.

Implementation

const ContainerHealthcheck({
  this.interval,
  this.retries,
  this.startInterval,
  this.startPeriod,
  this.tests,
  this.timeout,
});