HealthCheckPolicy class
An object representing the health check policy for a virtual node's listener.
Constructors
- HealthCheckPolicy({required int healthyThreshold, required int intervalMillis, required PortProtocol protocol, required int timeoutMillis, required int unhealthyThreshold, String? path, int? port})
-
HealthCheckPolicy.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- healthyThreshold → int
-
The number of consecutive successful health checks that must occur before
declaring
listener healthy.
final
- intervalMillis → int
-
The time period in milliseconds between each health check execution.
final
- path → String?
-
The destination path for the health check request. This is only required if
the
specified protocol is HTTP; if the protocol is TCP, then this parameter is
ignored.
final
- port → int?
-
The destination port for the health check request. This port must match the
port defined
in the PortMapping for the listener.
final
- protocol → PortProtocol
-
The protocol for the health check request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMillis → int
-
The amount of time to wait when receiving a response from the health check,
in
milliseconds.
final
- unhealthyThreshold → int
-
The number of consecutive failed health checks that must occur before
declaring a
virtual node unhealthy.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited