pub struct HealthCheckPolicy {
pub healthy_threshold: i64,
pub interval_millis: i64,
pub path: Option<String>,
pub port: Option<i64>,
pub protocol: String,
pub timeout_millis: i64,
pub unhealthy_threshold: i64,
}
Expand description
An object that represents the health check policy for a virtual node's listener.
Fields§
§healthy_threshold: i64
The number of consecutive successful health checks that must occur before declaring listener healthy.
interval_millis: i64
The time period in milliseconds between each health check execution.
path: Option<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.
port: Option<i64>
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
protocol: String
The protocol for the health check request. If you specify grpc
, then your
service must conform to the GRPC Health
Checking Protocol.
timeout_millis: i64
The amount of time to wait when receiving a response from the health check, in milliseconds.
unhealthy_threshold: i64
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
Trait Implementations§
Source§impl Clone for HealthCheckPolicy
impl Clone for HealthCheckPolicy
Source§fn clone(&self) -> HealthCheckPolicy
fn clone(&self) -> HealthCheckPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more