ContainerHealthcheck class
The health-check configuration baked into an image or specified at container creation time.
Constructors
-
ContainerHealthcheck({List<
String> ? test, int? interval, int? timeout, int? retries, int? startPeriod, int? startInterval}) -
Creates a ContainerHealthcheck with the given fields.
const
-
ContainerHealthcheck.fromJson(Map<
String, dynamic> json) -
Deserialises from Docker's JSON representation.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → int?
-
Interval between health checks in nanoseconds.
final
- retries → int?
-
Number of consecutive failures needed to declare the container unhealthy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startInterval → int?
-
Interval for health checks during the start period, in nanoseconds.
final
- startPeriod → int?
-
Initialisation period during which failed checks are not counted, in
nanoseconds.
final
-
test
→ List<
String> ? -
Health-check command, e.g.
['CMD', 'curl', '-f', 'http://localhost/'].final - timeout → int?
-
Maximum time to wait for a health check to complete, in nanoseconds.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited