/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatch.Model
{
///
/// 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.
///
public partial class AnomalyDetectorConfiguration
{
private List _excludedTimeRanges = new List();
private string _metricTimezone;
///
/// Gets and sets the property ExcludedTimeRanges.
///
/// 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.
///
///
public List ExcludedTimeRanges
{
get { return this._excludedTimeRanges; }
set { this._excludedTimeRanges = value; }
}
// Check to see if ExcludedTimeRanges property is set
internal bool IsSetExcludedTimeRanges()
{
return this._excludedTimeRanges != null && this._excludedTimeRanges.Count > 0;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Max=50)]
public string MetricTimezone
{
get { return this._metricTimezone; }
set { this._metricTimezone = value; }
}
// Check to see if MetricTimezone property is set
internal bool IsSetMetricTimezone()
{
return this._metricTimezone != null;
}
}
}