@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnomalyDetectorConfiguration extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
AnomalyDetectorConfiguration() |
Modifier and Type | Method and Description |
---|---|
AnomalyDetectorConfiguration |
clone() |
boolean |
equals(Object obj) |
List<Range> |
getExcludedTimeRanges()
An array of time ranges to exclude from use when the anomaly detection model is trained.
|
String |
getMetricTimezone()
The time zone to use for the metric.
|
int |
hashCode() |
void |
setExcludedTimeRanges(Collection<Range> excludedTimeRanges)
An array of time ranges to exclude from use when the anomaly detection model is trained.
|
void |
setMetricTimezone(String metricTimezone)
The time zone to use for the metric.
|
String |
toString()
Returns a string representation of this object.
|
AnomalyDetectorConfiguration |
withExcludedTimeRanges(Collection<Range> excludedTimeRanges)
An array of time ranges to exclude from use when the anomaly detection model is trained.
|
AnomalyDetectorConfiguration |
withExcludedTimeRanges(Range... excludedTimeRanges)
An array of time ranges to exclude from use when the anomaly detection model is trained.
|
AnomalyDetectorConfiguration |
withMetricTimezone(String metricTimezone)
The time zone to use for the metric.
|
public List<Range> getExcludedTimeRanges()
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 void setExcludedTimeRanges(Collection<Range> 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.
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 AnomalyDetectorConfiguration withExcludedTimeRanges(Range... 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.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedTimeRanges(java.util.Collection)
or withExcludedTimeRanges(java.util.Collection)
if
you want to override the existing values.
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 AnomalyDetectorConfiguration withExcludedTimeRanges(Collection<Range> 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.
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 void setMetricTimezone(String 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.
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.
public String getMetricTimezone()
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.
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.
public AnomalyDetectorConfiguration withMetricTimezone(String 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.
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.
public String toString()
toString
in class Object
Object.toString()
public AnomalyDetectorConfiguration clone()
Copyright © 2020. All rights reserved.