@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnomalyDetector extends Object implements Serializable, Cloneable
An anomaly detection model associated with a particular CloudWatch metric athresnd statistic. You can use the model to display a band of expected normal values when the metric is graphed.
Constructor and Description |
---|
AnomalyDetector() |
Modifier and Type | Method and Description |
---|---|
AnomalyDetector |
clone() |
boolean |
equals(Object obj) |
AnomalyDetectorConfiguration |
getConfiguration()
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.
|
List<Dimension> |
getDimensions()
The metric dimensions associated with the anomaly detection model.
|
String |
getMetricName()
The name of the metric associated with the anomaly detection model.
|
String |
getNamespace()
The namespace of the metric associated with the anomaly detection model.
|
String |
getStat()
The statistic associated with the anomaly detection model.
|
int |
hashCode() |
void |
setConfiguration(AnomalyDetectorConfiguration configuration)
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.
|
void |
setDimensions(Collection<Dimension> dimensions)
The metric dimensions associated with the anomaly detection model.
|
void |
setMetricName(String metricName)
The name of the metric associated with the anomaly detection model.
|
void |
setNamespace(String namespace)
The namespace of the metric associated with the anomaly detection model.
|
void |
setStat(String stat)
The statistic associated with the anomaly detection model.
|
String |
toString()
Returns a string representation of this object.
|
AnomalyDetector |
withConfiguration(AnomalyDetectorConfiguration configuration)
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.
|
AnomalyDetector |
withDimensions(Collection<Dimension> dimensions)
The metric dimensions associated with the anomaly detection model.
|
AnomalyDetector |
withDimensions(Dimension... dimensions)
The metric dimensions associated with the anomaly detection model.
|
AnomalyDetector |
withMetricName(String metricName)
The name of the metric associated with the anomaly detection model.
|
AnomalyDetector |
withNamespace(String namespace)
The namespace of the metric associated with the anomaly detection model.
|
AnomalyDetector |
withStat(String stat)
The statistic associated with the anomaly detection model.
|
public void setNamespace(String namespace)
The namespace of the metric associated with the anomaly detection model.
namespace
- The namespace of the metric associated with the anomaly detection model.public String getNamespace()
The namespace of the metric associated with the anomaly detection model.
public AnomalyDetector withNamespace(String namespace)
The namespace of the metric associated with the anomaly detection model.
namespace
- The namespace of the metric associated with the anomaly detection model.public void setMetricName(String metricName)
The name of the metric associated with the anomaly detection model.
metricName
- The name of the metric associated with the anomaly detection model.public String getMetricName()
The name of the metric associated with the anomaly detection model.
public AnomalyDetector withMetricName(String metricName)
The name of the metric associated with the anomaly detection model.
metricName
- The name of the metric associated with the anomaly detection model.public List<Dimension> getDimensions()
The metric dimensions associated with the anomaly detection model.
public void setDimensions(Collection<Dimension> dimensions)
The metric dimensions associated with the anomaly detection model.
dimensions
- The metric dimensions associated with the anomaly detection model.public AnomalyDetector withDimensions(Dimension... dimensions)
The metric dimensions associated with the anomaly detection model.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The metric dimensions associated with the anomaly detection model.public AnomalyDetector withDimensions(Collection<Dimension> dimensions)
The metric dimensions associated with the anomaly detection model.
dimensions
- The metric dimensions associated with the anomaly detection model.public void setStat(String stat)
The statistic associated with the anomaly detection model.
stat
- The statistic associated with the anomaly detection model.public String getStat()
The statistic associated with the anomaly detection model.
public AnomalyDetector withStat(String stat)
The statistic associated with the anomaly detection model.
stat
- The statistic associated with the anomaly detection model.public void setConfiguration(AnomalyDetectorConfiguration configuration)
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.
configuration
- 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 AnomalyDetectorConfiguration getConfiguration()
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 AnomalyDetector withConfiguration(AnomalyDetectorConfiguration configuration)
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.
configuration
- 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 String toString()
toString
in class Object
Object.toString()
public AnomalyDetector clone()
Copyright © 2019. All rights reserved.