Struct google_api_proto::google::cloud::compute::v1::GrpcHealthCheck
source · pub struct GrpcHealthCheck {
pub grpc_service_name: Option<String>,
pub port: Option<i32>,
pub port_name: Option<String>,
pub port_specification: Option<String>,
}
Expand description
Fields§
§grpc_service_name: Option<String>
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
port: Option<i32>
The TCP port number to which the health check prober sends packets. 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.
Implementations§
source§impl GrpcHealthCheck
impl GrpcHealthCheck
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 grpc_service_name(&self) -> &str
pub fn grpc_service_name(&self) -> &str
Returns the value of grpc_service_name
, or the default value if grpc_service_name
is unset.
Trait Implementations§
source§impl Clone for GrpcHealthCheck
impl Clone for GrpcHealthCheck
source§fn clone(&self) -> GrpcHealthCheck
fn clone(&self) -> GrpcHealthCheck
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GrpcHealthCheck
impl Debug for GrpcHealthCheck
source§impl Default for GrpcHealthCheck
impl Default for GrpcHealthCheck
source§impl Message for GrpcHealthCheck
impl Message for GrpcHealthCheck
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 GrpcHealthCheck
impl PartialEq for GrpcHealthCheck
source§fn eq(&self, other: &GrpcHealthCheck) -> bool
fn eq(&self, other: &GrpcHealthCheck) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GrpcHealthCheck
Auto Trait Implementations§
impl Freeze for GrpcHealthCheck
impl RefUnwindSafe for GrpcHealthCheck
impl Send for GrpcHealthCheck
impl Sync for GrpcHealthCheck
impl Unpin for GrpcHealthCheck
impl UnwindSafe for GrpcHealthCheck
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