Enum google_api_proto::google::cloud::compute::v1::health_check_service::HealthStatusAggregationPolicy
source · #[repr(i32)]pub enum HealthStatusAggregationPolicy {
UndefinedHealthStatusAggregationPolicy = 0,
And = 64_951,
NoAggregation = 426_445_124,
}
Expand description
Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService.
Variants§
UndefinedHealthStatusAggregationPolicy = 0
A value indicating that the enum field is not set.
And = 64_951
If any backend’s health check reports UNHEALTHY, then UNHEALTHY is the HealthState of the entire health check service. If all backend’s are healthy, the HealthState of the health check service is HEALTHY.
NoAggregation = 426_445_124
An EndpointHealth message is returned for each backend in the health check service.
Implementations§
source§impl HealthStatusAggregationPolicy
impl HealthStatusAggregationPolicy
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of HealthStatusAggregationPolicy
.
sourcepub fn from_i32(value: i32) -> Option<HealthStatusAggregationPolicy>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<HealthStatusAggregationPolicy>
Converts an i32
to a HealthStatusAggregationPolicy
, or None
if value
is not a valid variant.
source§impl HealthStatusAggregationPolicy
impl HealthStatusAggregationPolicy
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for HealthStatusAggregationPolicy
impl Clone for HealthStatusAggregationPolicy
source§fn clone(&self) -> HealthStatusAggregationPolicy
fn clone(&self) -> HealthStatusAggregationPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HealthStatusAggregationPolicy
impl Default for HealthStatusAggregationPolicy
source§fn default() -> HealthStatusAggregationPolicy
fn default() -> HealthStatusAggregationPolicy
source§impl From<HealthStatusAggregationPolicy> for i32
impl From<HealthStatusAggregationPolicy> for i32
source§fn from(value: HealthStatusAggregationPolicy) -> i32
fn from(value: HealthStatusAggregationPolicy) -> i32
source§impl Hash for HealthStatusAggregationPolicy
impl Hash for HealthStatusAggregationPolicy
source§impl Ord for HealthStatusAggregationPolicy
impl Ord for HealthStatusAggregationPolicy
source§fn cmp(&self, other: &HealthStatusAggregationPolicy) -> Ordering
fn cmp(&self, other: &HealthStatusAggregationPolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for HealthStatusAggregationPolicy
impl PartialEq for HealthStatusAggregationPolicy
source§fn eq(&self, other: &HealthStatusAggregationPolicy) -> bool
fn eq(&self, other: &HealthStatusAggregationPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HealthStatusAggregationPolicy
impl PartialOrd for HealthStatusAggregationPolicy
source§fn partial_cmp(&self, other: &HealthStatusAggregationPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &HealthStatusAggregationPolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for HealthStatusAggregationPolicy
impl TryFrom<i32> for HealthStatusAggregationPolicy
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(
value: i32,
) -> Result<HealthStatusAggregationPolicy, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<HealthStatusAggregationPolicy, UnknownEnumValue>
impl Copy for HealthStatusAggregationPolicy
impl Eq for HealthStatusAggregationPolicy
impl StructuralPartialEq for HealthStatusAggregationPolicy
Auto Trait Implementations§
impl Freeze for HealthStatusAggregationPolicy
impl RefUnwindSafe for HealthStatusAggregationPolicy
impl Send for HealthStatusAggregationPolicy
impl Sync for HealthStatusAggregationPolicy
impl Unpin for HealthStatusAggregationPolicy
impl UnwindSafe for HealthStatusAggregationPolicy
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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