getMonitor method

Future<GetMonitorOutput> getMonitor({
  1. required String monitorName,
})

Returns details about a specific monitor.

This action requires the monitorName parameter. Run ListMonitors to get a list of monitor names.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter monitorName : The name of the monitor that details are returned for.

Implementation

Future<GetMonitorOutput> getMonitor({
  required String monitorName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/monitors/${Uri.encodeComponent(monitorName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetMonitorOutput.fromJson(response);
}