pub struct VirtualGatewayHealthCheckPolicy {
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 gateway's listener.
Fields§
§healthy_threshold: i64
The number of consecutive successful health checks that must occur before declaring the 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 gateway unhealthy.
Trait Implementations§
Source§impl Clone for VirtualGatewayHealthCheckPolicy
impl Clone for VirtualGatewayHealthCheckPolicy
Source§fn clone(&self) -> VirtualGatewayHealthCheckPolicy
fn clone(&self) -> VirtualGatewayHealthCheckPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for VirtualGatewayHealthCheckPolicy
impl Default for VirtualGatewayHealthCheckPolicy
Source§fn default() -> VirtualGatewayHealthCheckPolicy
fn default() -> VirtualGatewayHealthCheckPolicy
Source§impl<'de> Deserialize<'de> for VirtualGatewayHealthCheckPolicy
impl<'de> Deserialize<'de> for VirtualGatewayHealthCheckPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for VirtualGatewayHealthCheckPolicy
impl PartialEq for VirtualGatewayHealthCheckPolicy
Source§fn eq(&self, other: &VirtualGatewayHealthCheckPolicy) -> bool
fn eq(&self, other: &VirtualGatewayHealthCheckPolicy) -> bool
self
and other
values to be equal, and is used by ==
.