pub struct MonitoringQueryLanguageCondition {
pub duration: Option<Duration>,
pub evaluation_missing_data: Option<String>,
pub query: Option<String>,
pub trigger: Option<Trigger>,
}
Expand description
A condition type that allows alert policies to be defined using Monitoring Query Language (https://cloud.google.com/monitoring/mql).
This type is not used in any activity, and only used as part of another schema.
Fields§
§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.
evaluation_missing_data: Option<String>
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
query: Option<String>
Monitoring Query Language (https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.
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.
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 Default for MonitoringQueryLanguageCondition
impl Default for MonitoringQueryLanguageCondition
Source§fn default() -> MonitoringQueryLanguageCondition
fn default() -> MonitoringQueryLanguageCondition
Source§impl<'de> Deserialize<'de> for MonitoringQueryLanguageCondition
impl<'de> Deserialize<'de> for MonitoringQueryLanguageCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more