Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates an anomaly detection model for a CloudWatch metric. You can use the model to display a band of expected normal values when the metric is graphed.
For more information, see CloudWatch Anomaly Detection.
Synopsis
- data PutAnomalyDetector = PutAnomalyDetector' {}
- newPutAnomalyDetector :: PutAnomalyDetector
- putAnomalyDetector_configuration :: Lens' PutAnomalyDetector (Maybe AnomalyDetectorConfiguration)
- putAnomalyDetector_dimensions :: Lens' PutAnomalyDetector (Maybe [Dimension])
- putAnomalyDetector_metricMathAnomalyDetector :: Lens' PutAnomalyDetector (Maybe MetricMathAnomalyDetector)
- putAnomalyDetector_metricName :: Lens' PutAnomalyDetector (Maybe Text)
- putAnomalyDetector_namespace :: Lens' PutAnomalyDetector (Maybe Text)
- putAnomalyDetector_singleMetricAnomalyDetector :: Lens' PutAnomalyDetector (Maybe SingleMetricAnomalyDetector)
- putAnomalyDetector_stat :: Lens' PutAnomalyDetector (Maybe Text)
- data PutAnomalyDetectorResponse = PutAnomalyDetectorResponse' {
- httpStatus :: Int
- newPutAnomalyDetectorResponse :: Int -> PutAnomalyDetectorResponse
- putAnomalyDetectorResponse_httpStatus :: Lens' PutAnomalyDetectorResponse Int
Creating a Request
data PutAnomalyDetector Source #
See: newPutAnomalyDetector
smart constructor.
PutAnomalyDetector' | |
|
Instances
newPutAnomalyDetector :: PutAnomalyDetector Source #
Create a value of PutAnomalyDetector
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutAnomalyDetector
, putAnomalyDetector_configuration
- The configuration specifies details about how the anomaly detection
model is to be trained, including time ranges to exclude when training
and updating the model. You can specify as many as 10 time ranges.
The configuration can also include the time zone to use for the metric.
PutAnomalyDetector
, putAnomalyDetector_dimensions
- The metric dimensions to create the anomaly detection model for.
PutAnomalyDetector
, putAnomalyDetector_metricMathAnomalyDetector
- The metric math anomaly detector to be created.
When using MetricMathAnomalyDetector
, you cannot include the following
parameters in the same operation:
Dimensions
MetricName
Namespace
Stat
- the
SingleMetricAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of
the property MetricMathAnomalyDetector
.
PutAnomalyDetector
, putAnomalyDetector_metricName
- The name of the metric to create the anomaly detection model for.
PutAnomalyDetector
, putAnomalyDetector_namespace
- The namespace of the metric to create the anomaly detection model for.
PutAnomalyDetector
, putAnomalyDetector_singleMetricAnomalyDetector
- A single metric anomaly detector to be created.
When using SingleMetricAnomalyDetector
, you cannot include the
following parameters in the same operation:
Dimensions
MetricName
Namespace
Stat
- the
MetricMatchAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part
of the property SingleMetricAnomalyDetector
.
PutAnomalyDetector
, putAnomalyDetector_stat
- The statistic to use for the metric and the anomaly detection model.
Request Lenses
putAnomalyDetector_configuration :: Lens' PutAnomalyDetector (Maybe AnomalyDetectorConfiguration) Source #
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. You can specify as many as 10 time ranges.
The configuration can also include the time zone to use for the metric.
putAnomalyDetector_dimensions :: Lens' PutAnomalyDetector (Maybe [Dimension]) Source #
The metric dimensions to create the anomaly detection model for.
putAnomalyDetector_metricMathAnomalyDetector :: Lens' PutAnomalyDetector (Maybe MetricMathAnomalyDetector) Source #
The metric math anomaly detector to be created.
When using MetricMathAnomalyDetector
, you cannot include the following
parameters in the same operation:
Dimensions
MetricName
Namespace
Stat
- the
SingleMetricAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of
the property MetricMathAnomalyDetector
.
putAnomalyDetector_metricName :: Lens' PutAnomalyDetector (Maybe Text) Source #
The name of the metric to create the anomaly detection model for.
putAnomalyDetector_namespace :: Lens' PutAnomalyDetector (Maybe Text) Source #
The namespace of the metric to create the anomaly detection model for.
putAnomalyDetector_singleMetricAnomalyDetector :: Lens' PutAnomalyDetector (Maybe SingleMetricAnomalyDetector) Source #
A single metric anomaly detector to be created.
When using SingleMetricAnomalyDetector
, you cannot include the
following parameters in the same operation:
Dimensions
MetricName
Namespace
Stat
- the
MetricMatchAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part
of the property SingleMetricAnomalyDetector
.
putAnomalyDetector_stat :: Lens' PutAnomalyDetector (Maybe Text) Source #
The statistic to use for the metric and the anomaly detection model.
Destructuring the Response
data PutAnomalyDetectorResponse Source #
See: newPutAnomalyDetectorResponse
smart constructor.
PutAnomalyDetectorResponse' | |
|
Instances
newPutAnomalyDetectorResponse Source #
Create a value of PutAnomalyDetectorResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutAnomalyDetectorResponse'
, putAnomalyDetectorResponse_httpStatus
- The response's http status code.
Response Lenses
putAnomalyDetectorResponse_httpStatus :: Lens' PutAnomalyDetectorResponse Int Source #
The response's http status code.