Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 :: Text -> Text -> Text -> PutAnomalyDetector
- putAnomalyDetector_configuration :: Lens' PutAnomalyDetector (Maybe AnomalyDetectorConfiguration)
- putAnomalyDetector_dimensions :: Lens' PutAnomalyDetector (Maybe [Dimension])
- putAnomalyDetector_namespace :: Lens' PutAnomalyDetector Text
- putAnomalyDetector_metricName :: Lens' PutAnomalyDetector Text
- putAnomalyDetector_stat :: Lens' PutAnomalyDetector 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 Source #
:: Text | |
-> Text | |
-> Text | |
-> PutAnomalyDetector |
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:
$sel:configuration: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.
$sel:dimensions:PutAnomalyDetector'
, putAnomalyDetector_dimensions
- The metric dimensions to create the anomaly detection model for.
$sel:namespace:PutAnomalyDetector'
, putAnomalyDetector_namespace
- The namespace of the metric to create the anomaly detection model for.
$sel:metricName:PutAnomalyDetector'
, putAnomalyDetector_metricName
- The name of the metric to create the anomaly detection model for.
$sel:stat: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_namespace :: Lens' PutAnomalyDetector Text Source #
The namespace of the metric to create the anomaly detection model for.
putAnomalyDetector_metricName :: Lens' PutAnomalyDetector Text Source #
The name of the metric to create the anomaly detection model for.
putAnomalyDetector_stat :: Lens' PutAnomalyDetector 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.