#[non_exhaustive]pub struct MetricMathAnomalyDetector { /* private fields */ }Expand description
Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input. The designated math expression must return a single time series.
Implementations§
source§impl MetricMathAnomalyDetector
impl MetricMathAnomalyDetector
sourcepub fn metric_data_queries(&self) -> Option<&[MetricDataQuery]>
pub fn metric_data_queries(&self) -> Option<&[MetricDataQuery]>
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item in MetricDataQueries gets a metric or performs a math expression. One item in MetricDataQueries is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by setting ReturnData to True for this object in the array. For all other expressions and metrics, set ReturnData to False. The designated expression must return a single time series.
source§impl MetricMathAnomalyDetector
impl MetricMathAnomalyDetector
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MetricMathAnomalyDetector.
Examples found in repository?
4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348
pub fn deser_structure_crate_model_metric_math_anomaly_detector(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::MetricMathAnomalyDetector, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::MetricMathAnomalyDetector::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("MetricDataQueries") /* MetricDataQueries com.amazonaws.cloudwatch#MetricMathAnomalyDetector$MetricDataQueries */ => {
let var_194 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudwatch_metric_data_queries(&mut tag)
?
)
;
builder = builder.set_metric_data_queries(var_194);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for MetricMathAnomalyDetector
impl Clone for MetricMathAnomalyDetector
source§fn clone(&self) -> MetricMathAnomalyDetector
fn clone(&self) -> MetricMathAnomalyDetector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more