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 alert for an anomaly detector.
Synopsis
- data CreateAlert = CreateAlert' {}
- newCreateAlert :: Text -> Natural -> Text -> Action -> CreateAlert
- createAlert_alertDescription :: Lens' CreateAlert (Maybe Text)
- createAlert_tags :: Lens' CreateAlert (Maybe (HashMap Text Text))
- createAlert_alertName :: Lens' CreateAlert Text
- createAlert_alertSensitivityThreshold :: Lens' CreateAlert Natural
- createAlert_anomalyDetectorArn :: Lens' CreateAlert Text
- createAlert_action :: Lens' CreateAlert Action
- data CreateAlertResponse = CreateAlertResponse' {
- alertArn :: Maybe Text
- httpStatus :: Int
- newCreateAlertResponse :: Int -> CreateAlertResponse
- createAlertResponse_alertArn :: Lens' CreateAlertResponse (Maybe Text)
- createAlertResponse_httpStatus :: Lens' CreateAlertResponse Int
Creating a Request
data CreateAlert Source #
See: newCreateAlert
smart constructor.
CreateAlert' | |
|
Instances
:: Text | |
-> Natural | |
-> Text | |
-> Action | |
-> CreateAlert |
Create a value of CreateAlert
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:alertDescription:CreateAlert'
, createAlert_alertDescription
- A description of the alert.
$sel:tags:CreateAlert'
, createAlert_tags
- A list of
tags
to apply to the alert.
$sel:alertName:CreateAlert'
, createAlert_alertName
- The name of the alert.
$sel:alertSensitivityThreshold:CreateAlert'
, createAlert_alertSensitivityThreshold
- An integer from 0 to 100 specifying the alert sensitivity threshold.
$sel:anomalyDetectorArn:CreateAlert'
, createAlert_anomalyDetectorArn
- The ARN of the detector to which the alert is attached.
$sel:action:CreateAlert'
, createAlert_action
- Action that will be triggered when there is an alert.
Request Lenses
createAlert_alertDescription :: Lens' CreateAlert (Maybe Text) Source #
A description of the alert.
createAlert_tags :: Lens' CreateAlert (Maybe (HashMap Text Text)) Source #
A list of tags to apply to the alert.
createAlert_alertName :: Lens' CreateAlert Text Source #
The name of the alert.
createAlert_alertSensitivityThreshold :: Lens' CreateAlert Natural Source #
An integer from 0 to 100 specifying the alert sensitivity threshold.
createAlert_anomalyDetectorArn :: Lens' CreateAlert Text Source #
The ARN of the detector to which the alert is attached.
createAlert_action :: Lens' CreateAlert Action Source #
Action that will be triggered when there is an alert.
Destructuring the Response
data CreateAlertResponse Source #
See: newCreateAlertResponse
smart constructor.
CreateAlertResponse' | |
|
Instances
newCreateAlertResponse Source #
Create a value of CreateAlertResponse
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:alertArn:CreateAlertResponse'
, createAlertResponse_alertArn
- The ARN of the alert.
$sel:httpStatus:CreateAlertResponse'
, createAlertResponse_httpStatus
- The response's http status code.
Response Lenses
createAlertResponse_alertArn :: Lens' CreateAlertResponse (Maybe Text) Source #
The ARN of the alert.
createAlertResponse_httpStatus :: Lens' CreateAlertResponse Int Source #
The response's http status code.