pub struct HTTP2HealthCheck {
pub host: Option<String>,
pub port: Option<i32>,
pub port_name: Option<String>,
pub port_specification: Option<String>,
pub proxy_header: Option<String>,
pub request_path: Option<String>,
pub response: Option<String>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§host: Option<String>The value of the host header in the HTTP/2 health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
port: Option<i32>The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
port_name: Option<String>Not supported.
port_specification: Option<String>Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service’s named port in the instance group’s list of named ports.
proxy_header: Option<String>Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
request_path: Option<String>The request path of the HTTP/2 health check request. The default value is /. Must comply with RFC3986.
response: Option<String>Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
Trait Implementations§
Source§impl Clone for HTTP2HealthCheck
impl Clone for HTTP2HealthCheck
Source§fn clone(&self) -> HTTP2HealthCheck
fn clone(&self) -> HTTP2HealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HTTP2HealthCheck
impl Debug for HTTP2HealthCheck
Source§impl Default for HTTP2HealthCheck
impl Default for HTTP2HealthCheck
Source§fn default() -> HTTP2HealthCheck
fn default() -> HTTP2HealthCheck
Source§impl<'de> Deserialize<'de> for HTTP2HealthCheck
impl<'de> Deserialize<'de> for HTTP2HealthCheck
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 Serialize for HTTP2HealthCheck
impl Serialize for HTTP2HealthCheck
impl Part for HTTP2HealthCheck
Auto Trait Implementations§
impl Freeze for HTTP2HealthCheck
impl RefUnwindSafe for HTTP2HealthCheck
impl Send for HTTP2HealthCheck
impl Sync for HTTP2HealthCheck
impl Unpin for HTTP2HealthCheck
impl UnwindSafe for HTTP2HealthCheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more