HealthCheckPolicy class

An object that represents 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 value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value 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. If you specify grpc, then your service must conform to the GRPC Health Checking Protocol.
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