Class ContainerHealthcheck
Inheritance
System.Object
ContainerHealthcheck
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Docker.Outputs
Assembly: Pulumi.Docker.dll
Syntax
public sealed class ContainerHealthcheck
Fields
View SourceInterval
Time between running the check (ms|s|m|h). Default: 0s.
Declaration
public readonly string Interval
Field Value
| Type | Description |
|---|---|
| System.String |
Retries
Consecutive failures needed to report unhealthy. Default: 0.
Declaration
public readonly int? Retries
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
StartPeriod
Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Default: 0s.
Declaration
public readonly string StartPeriod
Field Value
| Type | Description |
|---|---|
| System.String |
Tests
Command to run to check health. For example, to run curl -f http://localhost/health set the
command to be ["CMD", "curl", "-f", "http://localhost/health"].
Declaration
public readonly ImmutableArray<string> Tests
Field Value
| Type | Description |
|---|---|
| System.Collections.Immutable.ImmutableArray<System.String> |
Timeout
Maximum time to allow one check to run (ms|s|m|h). Default: 0s.
Declaration
public readonly string Timeout
Field Value
| Type | Description |
|---|---|
| System.String |