pub struct TCPHealthCheck {
pub port: Option<i32>,
pub port_name: Option<String>,
pub port_specification: Option<String>,
pub proxy_header: Option<String>,
pub request: 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§
§port: Option<i32>
The TCP port number to which the health check prober sends packets. The default value is 80. 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: Option<String>
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.
response: Option<String>
Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
Trait Implementations§
Source§impl Clone for TCPHealthCheck
impl Clone for TCPHealthCheck
Source§fn clone(&self) -> TCPHealthCheck
fn clone(&self) -> TCPHealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TCPHealthCheck
impl Debug for TCPHealthCheck
Source§impl Default for TCPHealthCheck
impl Default for TCPHealthCheck
Source§fn default() -> TCPHealthCheck
fn default() -> TCPHealthCheck
Source§impl<'de> Deserialize<'de> for TCPHealthCheck
impl<'de> Deserialize<'de> for TCPHealthCheck
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 TCPHealthCheck
impl Serialize for TCPHealthCheck
impl Part for TCPHealthCheck
Auto Trait Implementations§
impl Freeze for TCPHealthCheck
impl RefUnwindSafe for TCPHealthCheck
impl Send for TCPHealthCheck
impl Sync for TCPHealthCheck
impl Unpin for TCPHealthCheck
impl UnwindSafe for TCPHealthCheck
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