/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The configuration specifies details about how the anomaly detection model is
* to be trained, including time ranges to exclude from use for training the model
* and the time zone to use for the metric.See Also:
AWS
* API Reference
An array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline const Aws::VectorAn array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline bool ExcludedTimeRangesHasBeenSet() const { return m_excludedTimeRangesHasBeenSet; } /** *An array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline void SetExcludedTimeRanges(const Aws::VectorAn array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline void SetExcludedTimeRanges(Aws::VectorAn array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline AnomalyDetectorConfiguration& WithExcludedTimeRanges(const Aws::VectorAn array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline AnomalyDetectorConfiguration& WithExcludedTimeRanges(Aws::VectorAn array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline AnomalyDetectorConfiguration& AddExcludedTimeRanges(const Range& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges.push_back(value); return *this; } /** *An array of time ranges to exclude from use when the anomaly detection model * is trained. Use this to make sure that events that could cause unusual values * for the metric, such as deployments, aren't used when CloudWatch creates the * model.
*/ inline AnomalyDetectorConfiguration& AddExcludedTimeRanges(Range&& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges.push_back(std::move(value)); return *this; } /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline const Aws::String& GetMetricTimezone() const{ return m_metricTimezone; } /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline bool MetricTimezoneHasBeenSet() const { return m_metricTimezoneHasBeenSet; } /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline void SetMetricTimezone(const Aws::String& value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone = value; } /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline void SetMetricTimezone(Aws::String&& value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone = std::move(value); } /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline void SetMetricTimezone(const char* value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone.assign(value); } /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline AnomalyDetectorConfiguration& WithMetricTimezone(const Aws::String& value) { SetMetricTimezone(value); return *this;} /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline AnomalyDetectorConfiguration& WithMetricTimezone(Aws::String&& value) { SetMetricTimezone(std::move(value)); return *this;} /** *The time zone to use for the metric. This is useful to enable the model to * automatically account for daylight savings time changes if the metric is * sensitive to such time changes.
To specify a time zone, use the name of * the time zone as specified in the standard tz database. For more information, * see tz database.
*/ inline AnomalyDetectorConfiguration& WithMetricTimezone(const char* value) { SetMetricTimezone(value); return *this;} private: Aws::Vector