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

This object includes parameters that you can use to provide information to * CloudWatch to help it build more accurate anomaly detection * models.

See Also:

AWS * API Reference

*/ class MetricCharacteristics { public: AWS_CLOUDWATCH_API MetricCharacteristics(); AWS_CLOUDWATCH_API MetricCharacteristics(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API MetricCharacteristics& 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; /** *

Set this parameter to true if values for this metric * consistently include spikes that should not be considered to be anomalies. With * this set to true, CloudWatch will expect to see spikes that * occurred consistently during the model training period, and won't flag future * similar spikes as anomalies.

*/ inline bool GetPeriodicSpikes() const{ return m_periodicSpikes; } /** *

Set this parameter to true if values for this metric * consistently include spikes that should not be considered to be anomalies. With * this set to true, CloudWatch will expect to see spikes that * occurred consistently during the model training period, and won't flag future * similar spikes as anomalies.

*/ inline bool PeriodicSpikesHasBeenSet() const { return m_periodicSpikesHasBeenSet; } /** *

Set this parameter to true if values for this metric * consistently include spikes that should not be considered to be anomalies. With * this set to true, CloudWatch will expect to see spikes that * occurred consistently during the model training period, and won't flag future * similar spikes as anomalies.

*/ inline void SetPeriodicSpikes(bool value) { m_periodicSpikesHasBeenSet = true; m_periodicSpikes = value; } /** *

Set this parameter to true if values for this metric * consistently include spikes that should not be considered to be anomalies. With * this set to true, CloudWatch will expect to see spikes that * occurred consistently during the model training period, and won't flag future * similar spikes as anomalies.

*/ inline MetricCharacteristics& WithPeriodicSpikes(bool value) { SetPeriodicSpikes(value); return *this;} private: bool m_periodicSpikes; bool m_periodicSpikesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws