Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
If you want to learn why a health check is currently failing or why it failed most recently (if at all), you can get the failure reason for the most recent failure. Send a GET
request to the '/Amazon Route 53 API version/healthcheck/health check ID/lastfailurereason' resource.
- getHealthCheckLastFailureReason :: Text -> GetHealthCheckLastFailureReason
- data GetHealthCheckLastFailureReason
- ghclfrHealthCheckId :: Lens' GetHealthCheckLastFailureReason Text
- getHealthCheckLastFailureReasonResponse :: Int -> GetHealthCheckLastFailureReasonResponse
- data GetHealthCheckLastFailureReasonResponse
- ghclfrrsResponseStatus :: Lens' GetHealthCheckLastFailureReasonResponse Int
- ghclfrrsHealthCheckObservations :: Lens' GetHealthCheckLastFailureReasonResponse [HealthCheckObservation]
Creating a Request
getHealthCheckLastFailureReason Source #
Creates a value of GetHealthCheckLastFailureReason
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetHealthCheckLastFailureReason Source #
This action gets the reason that a specified health check failed most recently.
To get the reason for the last failure of a health check, send a GET request to the /2013-04-01/healthcheck/health check ID/lastfailurereason resource.
For information about viewing the last failure reason for a health check using the Amazon Route 53 console, see Viewing Health Check Status and the Reason for Health Check Failures in the Amazon Route 53 Developer Guide.
See: getHealthCheckLastFailureReason
smart constructor.
Request Lenses
ghclfrHealthCheckId :: Lens' GetHealthCheckLastFailureReason Text Source #
The ID for the health check for which you want the last failure reason. When you created the health check, CreateHealthCheck
returned the ID in the response, in the HealthCheckId
element.
Destructuring the Response
getHealthCheckLastFailureReasonResponse Source #
Creates a value of GetHealthCheckLastFailureReasonResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetHealthCheckLastFailureReasonResponse Source #
A complex type that contains the response to a GetHealthCheckLastFailureReason
request.
See: getHealthCheckLastFailureReasonResponse
smart constructor.
Response Lenses
ghclfrrsResponseStatus :: Lens' GetHealthCheckLastFailureReasonResponse Int Source #
The response status code.
ghclfrrsHealthCheckObservations :: Lens' GetHealthCheckLastFailureReasonResponse [HealthCheckObservation] Source #
A list that contains one Observation
element for each Amazon Route 53 health checker that is reporting a last failure reason.