| 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.DescribeAlert
Description
Describes an alert.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
Synopsis
- data DescribeAlert = DescribeAlert' {}
- newDescribeAlert :: Text -> DescribeAlert
- describeAlert_alertArn :: Lens' DescribeAlert Text
- data DescribeAlertResponse = DescribeAlertResponse' {
- alert :: Maybe Alert
- httpStatus :: Int
- newDescribeAlertResponse :: Int -> DescribeAlertResponse
- describeAlertResponse_alert :: Lens' DescribeAlertResponse (Maybe Alert)
- describeAlertResponse_httpStatus :: Lens' DescribeAlertResponse Int
Creating a Request
data DescribeAlert Source #
See: newDescribeAlert smart constructor.
Constructors
| DescribeAlert' | |
Instances
Arguments
| :: Text | |
| -> DescribeAlert |
Create a value of DescribeAlert 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:
DescribeAlert, describeAlert_alertArn - The ARN of the alert to describe.
Request Lenses
describeAlert_alertArn :: Lens' DescribeAlert Text Source #
The ARN of the alert to describe.
Destructuring the Response
data DescribeAlertResponse Source #
See: newDescribeAlertResponse smart constructor.
Constructors
| DescribeAlertResponse' | |
Fields
| |
Instances
newDescribeAlertResponse Source #
Create a value of DescribeAlertResponse 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:alert:DescribeAlertResponse', describeAlertResponse_alert - Contains information about an alert.
$sel:httpStatus:DescribeAlertResponse', describeAlertResponse_httpStatus - The response's http status code.
Response Lenses
describeAlertResponse_alert :: Lens' DescribeAlertResponse (Maybe Alert) Source #
Contains information about an alert.
describeAlertResponse_httpStatus :: Lens' DescribeAlertResponse Int Source #
The response's http status code.