Struct google_api_proto::google::cloud::compute::v1::TcpHealthCheck
source · 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
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. Check the PortSpecification enum for the list of possible values.
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. Check the ProxyHeader enum for the list of possible values.
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
Implementations§
source§impl TcpHealthCheck
impl TcpHealthCheck
sourcepub fn request(&self) -> &str
pub fn request(&self) -> &str
Returns the value of request
, or the default value if request
is unset.
sourcepub fn port_name(&self) -> &str
pub fn port_name(&self) -> &str
Returns the value of port_name
, or the default value if port_name
is unset.
sourcepub fn port_specification(&self) -> &str
pub fn port_specification(&self) -> &str
Returns the value of port_specification
, or the default value if port_specification
is unset.
sourcepub fn proxy_header(&self) -> &str
pub fn proxy_header(&self) -> &str
Returns the value of proxy_header
, or the default value if proxy_header
is unset.
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§impl Message for TcpHealthCheck
impl Message for TcpHealthCheck
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TcpHealthCheck
impl PartialEq for TcpHealthCheck
source§fn eq(&self, other: &TcpHealthCheck) -> bool
fn eq(&self, other: &TcpHealthCheck) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request