| 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 |
Amazonka.LookoutMetrics.UpdateAlert
Description
Make changes to an existing alert.
Synopsis
- data UpdateAlert = UpdateAlert' {}
- newUpdateAlert :: Text -> UpdateAlert
- updateAlert_action :: Lens' UpdateAlert (Maybe Action)
- updateAlert_alertDescription :: Lens' UpdateAlert (Maybe Text)
- updateAlert_alertFilters :: Lens' UpdateAlert (Maybe AlertFilters)
- updateAlert_alertSensitivityThreshold :: Lens' UpdateAlert (Maybe Natural)
- updateAlert_alertArn :: Lens' UpdateAlert Text
- data UpdateAlertResponse = UpdateAlertResponse' {
- alertArn :: Maybe Text
- httpStatus :: Int
- newUpdateAlertResponse :: Int -> UpdateAlertResponse
- updateAlertResponse_alertArn :: Lens' UpdateAlertResponse (Maybe Text)
- updateAlertResponse_httpStatus :: Lens' UpdateAlertResponse Int
Creating a Request
data UpdateAlert Source #
See: newUpdateAlert smart constructor.
Constructors
| UpdateAlert' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateAlert |
Create a value of UpdateAlert 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:
UpdateAlert, updateAlert_action - Action that will be triggered when there is an alert.
UpdateAlert, updateAlert_alertDescription - A description of the alert.
UpdateAlert, updateAlert_alertFilters - The configuration of the alert filters, containing MetricList and
DimensionFilterList.
UpdateAlert, updateAlert_alertSensitivityThreshold - An integer from 0 to 100 specifying the alert sensitivity threshold.
UpdateAlert, updateAlert_alertArn - The ARN of the alert to update.
Request Lenses
updateAlert_action :: Lens' UpdateAlert (Maybe Action) Source #
Action that will be triggered when there is an alert.
updateAlert_alertDescription :: Lens' UpdateAlert (Maybe Text) Source #
A description of the alert.
updateAlert_alertFilters :: Lens' UpdateAlert (Maybe AlertFilters) Source #
The configuration of the alert filters, containing MetricList and DimensionFilterList.
updateAlert_alertSensitivityThreshold :: Lens' UpdateAlert (Maybe Natural) Source #
An integer from 0 to 100 specifying the alert sensitivity threshold.
updateAlert_alertArn :: Lens' UpdateAlert Text Source #
The ARN of the alert to update.
Destructuring the Response
data UpdateAlertResponse Source #
See: newUpdateAlertResponse smart constructor.
Constructors
| UpdateAlertResponse' | |
Fields
| |
Instances
newUpdateAlertResponse Source #
Arguments
| :: Int | |
| -> UpdateAlertResponse |
Create a value of UpdateAlertResponse 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:
UpdateAlert, updateAlertResponse_alertArn - The ARN of the updated alert.
$sel:httpStatus:UpdateAlertResponse', updateAlertResponse_httpStatus - The response's http status code.
Response Lenses
updateAlertResponse_alertArn :: Lens' UpdateAlertResponse (Maybe Text) Source #
The ARN of the updated alert.
updateAlertResponse_httpStatus :: Lens' UpdateAlertResponse Int Source #
The response's http status code.