@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, statistic, or metric math expression. You can use the model to display a band of expected, normal values when the metric is graphed.
If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account.
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()
Deprecated.
|
MetricCharacteristics |
getMetricCharacteristics()
This object includes parameters that you can use to provide information about your metric to CloudWatch to help
it build more accurate anomaly detection models.
|
MetricMathAnomalyDetector |
getMetricMathAnomalyDetector()
The CloudWatch metric math expression for this anomaly detector.
|
String |
getMetricName()
Deprecated.
|
String |
getNamespace()
Deprecated.
|
SingleMetricAnomalyDetector |
getSingleMetricAnomalyDetector()
The CloudWatch metric and statistic for this anomaly detector.
|
String |
getStat()
Deprecated.
|
String |
getStateValue()
The current status of the anomaly detector's training.
|
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)
Deprecated.
|
void |
setMetricCharacteristics(MetricCharacteristics metricCharacteristics)
This object includes parameters that you can use to provide information about your metric to CloudWatch to help
it build more accurate anomaly detection models.
|
void |
setMetricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The CloudWatch metric math expression for this anomaly detector.
|
void |
setMetricName(String metricName)
Deprecated.
|
void |
setNamespace(String namespace)
Deprecated.
|
void |
setSingleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
The CloudWatch metric and statistic for this anomaly detector.
|
void |
setStat(String stat)
Deprecated.
|
void |
setStateValue(String stateValue)
The current status of the anomaly detector's training.
|
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)
Deprecated.
|
AnomalyDetector |
withDimensions(Dimension... dimensions)
Deprecated.
|
AnomalyDetector |
withMetricCharacteristics(MetricCharacteristics metricCharacteristics)
This object includes parameters that you can use to provide information about your metric to CloudWatch to help
it build more accurate anomaly detection models.
|
AnomalyDetector |
withMetricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The CloudWatch metric math expression for this anomaly detector.
|
AnomalyDetector |
withMetricName(String metricName)
Deprecated.
|
AnomalyDetector |
withNamespace(String namespace)
Deprecated.
|
AnomalyDetector |
withSingleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
The CloudWatch metric and statistic for this anomaly detector.
|
AnomalyDetector |
withStat(String stat)
Deprecated.
|
AnomalyDetector |
withStateValue(AnomalyDetectorStateValue stateValue)
The current status of the anomaly detector's training.
|
AnomalyDetector |
withStateValue(String stateValue)
The current status of the anomaly detector's training.
|
@Deprecated 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.@Deprecated public String getNamespace()
The namespace of the metric associated with the anomaly detection model.
@Deprecated 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.@Deprecated 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.@Deprecated public String getMetricName()
The name of the metric associated with the anomaly detection model.
@Deprecated 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.@Deprecated public List<Dimension> getDimensions()
The metric dimensions associated with the anomaly detection model.
@Deprecated 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.@Deprecated 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.@Deprecated 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.@Deprecated public void setStat(String stat)
The statistic associated with the anomaly detection model.
stat
- The statistic associated with the anomaly detection model.@Deprecated public String getStat()
The statistic associated with the anomaly detection model.
@Deprecated 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 void setStateValue(String stateValue)
The current status of the anomaly detector's training.
stateValue
- The current status of the anomaly detector's training.AnomalyDetectorStateValue
public String getStateValue()
The current status of the anomaly detector's training.
AnomalyDetectorStateValue
public AnomalyDetector withStateValue(String stateValue)
The current status of the anomaly detector's training.
stateValue
- The current status of the anomaly detector's training.AnomalyDetectorStateValue
public AnomalyDetector withStateValue(AnomalyDetectorStateValue stateValue)
The current status of the anomaly detector's training.
stateValue
- The current status of the anomaly detector's training.AnomalyDetectorStateValue
public void setMetricCharacteristics(MetricCharacteristics metricCharacteristics)
This object includes parameters that you can use to provide information about your metric to CloudWatch to help
it build more accurate anomaly detection models. Currently, it includes the PeriodicSpikes
parameter.
metricCharacteristics
- This object includes parameters that you can use to provide information about your metric to CloudWatch to
help it build more accurate anomaly detection models. Currently, it includes the
PeriodicSpikes
parameter.public MetricCharacteristics getMetricCharacteristics()
This object includes parameters that you can use to provide information about your metric to CloudWatch to help
it build more accurate anomaly detection models. Currently, it includes the PeriodicSpikes
parameter.
PeriodicSpikes
parameter.public AnomalyDetector withMetricCharacteristics(MetricCharacteristics metricCharacteristics)
This object includes parameters that you can use to provide information about your metric to CloudWatch to help
it build more accurate anomaly detection models. Currently, it includes the PeriodicSpikes
parameter.
metricCharacteristics
- This object includes parameters that you can use to provide information about your metric to CloudWatch to
help it build more accurate anomaly detection models. Currently, it includes the
PeriodicSpikes
parameter.public void setSingleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
The CloudWatch metric and statistic for this anomaly detector.
singleMetricAnomalyDetector
- The CloudWatch metric and statistic for this anomaly detector.public SingleMetricAnomalyDetector getSingleMetricAnomalyDetector()
The CloudWatch metric and statistic for this anomaly detector.
public AnomalyDetector withSingleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
The CloudWatch metric and statistic for this anomaly detector.
singleMetricAnomalyDetector
- The CloudWatch metric and statistic for this anomaly detector.public void setMetricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The CloudWatch metric math expression for this anomaly detector.
metricMathAnomalyDetector
- The CloudWatch metric math expression for this anomaly detector.public MetricMathAnomalyDetector getMetricMathAnomalyDetector()
The CloudWatch metric math expression for this anomaly detector.
public AnomalyDetector withMetricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The CloudWatch metric math expression for this anomaly detector.
metricMathAnomalyDetector
- The CloudWatch metric math expression for this anomaly detector.public String toString()
toString
in class Object
Object.toString()
public AnomalyDetector clone()