Struct google_api_proto::google::monitoring::v3::alert_policy::condition::MonitoringQueryLanguageCondition
source · pub struct MonitoringQueryLanguageCondition {
pub query: String,
pub duration: Option<Duration>,
pub trigger: Option<Trigger>,
pub evaluation_missing_data: i32,
}
Expand description
A condition type that allows alert policies to be defined using Monitoring Query Language.
Fields§
§query: String
Monitoring Query Language query that outputs a boolean stream.
duration: Option<Duration>
The amount of time that a time series must violate the
threshold to be considered failing. Currently, only values
that are a multiple of a minute–e.g., 0, 60, 120, or 300
seconds–are supported. If an invalid value is given, an
error will be returned. When choosing a duration, it is useful to
keep in mind the frequency of the underlying time series data
(which may also be affected by any alignments specified in the
aggregations
field); a good duration is long enough so that a single
outlier does not generate spurious alerts, but short enough that
unhealthy states are detected and alerted on quickly.
trigger: Option<Trigger>
The number/percent of time series for which the comparison must hold
in order for the condition to trigger. If unspecified, then the
condition will trigger if the comparison is true for any of the
time series that have been identified by filter
and aggregations
,
or by the ratio, if denominator_filter
and denominator_aggregations
are specified.
evaluation_missing_data: i32
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
Implementations§
source§impl MonitoringQueryLanguageCondition
impl MonitoringQueryLanguageCondition
sourcepub fn evaluation_missing_data(&self) -> EvaluationMissingData
pub fn evaluation_missing_data(&self) -> EvaluationMissingData
Returns the enum value of evaluation_missing_data
, or the default if the field is set to an invalid enum value.
sourcepub fn set_evaluation_missing_data(&mut self, value: EvaluationMissingData)
pub fn set_evaluation_missing_data(&mut self, value: EvaluationMissingData)
Sets evaluation_missing_data
to the provided enum value.
Trait Implementations§
source§impl Clone for MonitoringQueryLanguageCondition
impl Clone for MonitoringQueryLanguageCondition
source§fn clone(&self) -> MonitoringQueryLanguageCondition
fn clone(&self) -> MonitoringQueryLanguageCondition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for MonitoringQueryLanguageCondition
impl Message for MonitoringQueryLanguageCondition
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 MonitoringQueryLanguageCondition
impl PartialEq for MonitoringQueryLanguageCondition
source§fn eq(&self, other: &MonitoringQueryLanguageCondition) -> bool
fn eq(&self, other: &MonitoringQueryLanguageCondition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MonitoringQueryLanguageCondition
Auto Trait Implementations§
impl Freeze for MonitoringQueryLanguageCondition
impl RefUnwindSafe for MonitoringQueryLanguageCondition
impl Send for MonitoringQueryLanguageCondition
impl Sync for MonitoringQueryLanguageCondition
impl Unpin for MonitoringQueryLanguageCondition
impl UnwindSafe for MonitoringQueryLanguageCondition
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