describeMonitor method
Describes a monitor resource. In addition to listing the properties provided in the CreateMonitor request, this operation lists the following properties:
-
Baseline -
CreationTime -
LastEvaluationTime -
LastEvaluationState -
LastModificationTime -
Message -
Status
May throw InvalidInputException.
May throw ResourceNotFoundException.
Parameter monitorArn :
The Amazon Resource Name (ARN) of the monitor resource to describe.
Implementation
Future<DescribeMonitorResponse> describeMonitor({
required String monitorArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.DescribeMonitor'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MonitorArn': monitorArn,
},
);
return DescribeMonitorResponse.fromJson(jsonResponse.body);
}