getEvaluation method
Returns an Evaluation that includes metadata as well as the
current status of the Evaluation.
May throw InternalServerException.
May throw InvalidInputException.
May throw ResourceNotFoundException.
Parameter evaluationId :
The ID of the Evaluation to retrieve. The evaluation of each
MLModel is recorded and cataloged. The ID provides the means
to access the information.
Implementation
Future<GetEvaluationOutput> getEvaluation({
required String evaluationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonML_20141212.GetEvaluation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EvaluationId': evaluationId,
},
);
return GetEvaluationOutput.fromJson(jsonResponse.body);
}