getHealthCheckLastFailureReason method
Future<GetHealthCheckLastFailureReasonResponse>
getHealthCheckLastFailureReason({
- required String healthCheckId,
Gets the reason that a specified health check failed most recently.
May throw NoSuchHealthCheck. May throw InvalidInput.
Parameter healthCheckId
:
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.
Implementation
Future<GetHealthCheckLastFailureReasonResponse>
getHealthCheckLastFailureReason({
required String healthCheckId,
}) async {
ArgumentError.checkNotNull(healthCheckId, 'healthCheckId');
_s.validateStringLength(
'healthCheckId',
healthCheckId,
0,
64,
isRequired: true,
);
final $result = await _protocol.send(
method: 'GET',
requestUri:
'/2013-04-01/healthcheck/${Uri.encodeComponent(healthCheckId)}/lastfailurereason',
exceptionFnMap: _exceptionFns,
);
return GetHealthCheckLastFailureReasonResponse.fromXml($result.body);
}