Enum google_api_proto::google::monitoring::v3::alert_policy::condition::EvaluationMissingData
source · #[repr(i32)]pub enum EvaluationMissingData {
Unspecified = 0,
Inactive = 1,
Active = 2,
NoOp = 3,
}
Expand description
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. This control doesn’t affect metric-absence policies.
Variants§
Unspecified = 0
An unspecified evaluation missing data option. Equivalent to EVALUATION_MISSING_DATA_NO_OP.
Inactive = 1
If there is no data to evaluate the condition, then evaluate the condition as false.
Active = 2
If there is no data to evaluate the condition, then evaluate the condition as true.
NoOp = 3
Do not evaluate the condition to any value if there is no data.
Implementations§
source§impl EvaluationMissingData
impl EvaluationMissingData
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of EvaluationMissingData
.
sourcepub fn from_i32(value: i32) -> Option<EvaluationMissingData>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<EvaluationMissingData>
Converts an i32
to a EvaluationMissingData
, or None
if value
is not a valid variant.
source§impl EvaluationMissingData
impl EvaluationMissingData
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 EvaluationMissingData
impl Clone for EvaluationMissingData
source§fn clone(&self) -> EvaluationMissingData
fn clone(&self) -> EvaluationMissingData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationMissingData
impl Debug for EvaluationMissingData
source§impl Default for EvaluationMissingData
impl Default for EvaluationMissingData
source§fn default() -> EvaluationMissingData
fn default() -> EvaluationMissingData
source§impl From<EvaluationMissingData> for i32
impl From<EvaluationMissingData> for i32
source§fn from(value: EvaluationMissingData) -> i32
fn from(value: EvaluationMissingData) -> i32
source§impl Hash for EvaluationMissingData
impl Hash for EvaluationMissingData
source§impl Ord for EvaluationMissingData
impl Ord for EvaluationMissingData
source§fn cmp(&self, other: &EvaluationMissingData) -> Ordering
fn cmp(&self, other: &EvaluationMissingData) -> 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 EvaluationMissingData
impl PartialEq for EvaluationMissingData
source§fn eq(&self, other: &EvaluationMissingData) -> bool
fn eq(&self, other: &EvaluationMissingData) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EvaluationMissingData
impl PartialOrd for EvaluationMissingData
source§fn partial_cmp(&self, other: &EvaluationMissingData) -> Option<Ordering>
fn partial_cmp(&self, other: &EvaluationMissingData) -> 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 EvaluationMissingData
impl TryFrom<i32> for EvaluationMissingData
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<EvaluationMissingData, UnknownEnumValue>
fn try_from(value: i32) -> Result<EvaluationMissingData, UnknownEnumValue>
impl Copy for EvaluationMissingData
impl Eq for EvaluationMissingData
impl StructuralPartialEq for EvaluationMissingData
Auto Trait Implementations§
impl Freeze for EvaluationMissingData
impl RefUnwindSafe for EvaluationMissingData
impl Send for EvaluationMissingData
impl Sync for EvaluationMissingData
impl Unpin for EvaluationMissingData
impl UnwindSafe for EvaluationMissingData
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