Struct google_api_proto::google::cloud::compute::v1::HttpsHealthCheck
source · pub struct HttpsHealthCheck {
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
Fields§
§host: Option<String>
The value of the host header in the HTTPS 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. 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_path: Option<String>
The request path of the HTTPS health check request. The default value is /. Must comply with RFC3986.
response: Option<String>
Creates a content-based HTTPS 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
Implementations§
source§impl HttpsHealthCheck
impl HttpsHealthCheck
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.
sourcepub fn response(&self) -> &str
pub fn response(&self) -> &str
Returns the value of response
, or the default value if response
is unset.
sourcepub fn request_path(&self) -> &str
pub fn request_path(&self) -> &str
Returns the value of request_path
, or the default value if request_path
is unset.
Trait Implementations§
source§impl Clone for HttpsHealthCheck
impl Clone for HttpsHealthCheck
source§fn clone(&self) -> HttpsHealthCheck
fn clone(&self) -> HttpsHealthCheck
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HttpsHealthCheck
impl Debug for HttpsHealthCheck
source§impl Default for HttpsHealthCheck
impl Default for HttpsHealthCheck
source§impl Message for HttpsHealthCheck
impl Message for HttpsHealthCheck
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 HttpsHealthCheck
impl PartialEq for HttpsHealthCheck
source§fn eq(&self, other: &HttpsHealthCheck) -> bool
fn eq(&self, other: &HttpsHealthCheck) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HttpsHealthCheck
Auto Trait Implementations§
impl Freeze for HttpsHealthCheck
impl RefUnwindSafe for HttpsHealthCheck
impl Send for HttpsHealthCheck
impl Sync for HttpsHealthCheck
impl Unpin for HttpsHealthCheck
impl UnwindSafe for HttpsHealthCheck
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