/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class MetricMathAnomalyDetector { public: AWS_CLOUDWATCH_API MetricMathAnomalyDetector(); AWS_CLOUDWATCH_API MetricMathAnomalyDetector(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API MetricMathAnomalyDetector& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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.

*/ inline const Aws::Vector& GetMetricDataQueries() const{ return m_metricDataQueries; } /** *

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.

*/ inline bool MetricDataQueriesHasBeenSet() const { return m_metricDataQueriesHasBeenSet; } /** *

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.

*/ inline void SetMetricDataQueries(const Aws::Vector& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = value; } /** *

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.

*/ inline void SetMetricDataQueries(Aws::Vector&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = std::move(value); } /** *

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.

*/ inline MetricMathAnomalyDetector& WithMetricDataQueries(const Aws::Vector& value) { SetMetricDataQueries(value); return *this;} /** *

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.

*/ inline MetricMathAnomalyDetector& WithMetricDataQueries(Aws::Vector&& value) { SetMetricDataQueries(std::move(value)); return *this;} /** *

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.

*/ inline MetricMathAnomalyDetector& AddMetricDataQueries(const MetricDataQuery& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(value); return *this; } /** *

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.

*/ inline MetricMathAnomalyDetector& AddMetricDataQueries(MetricDataQuery&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(std::move(value)); return *this; } private: Aws::Vector m_metricDataQueries; bool m_metricDataQueriesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws