getSolutionMetrics method

Future<GetSolutionMetricsResponse> getSolutionMetrics({
  1. required String solutionVersionArn,
})

Gets the metrics for the specified solution version.

May throw InvalidInputException. May throw ResourceInUseException. May throw ResourceNotFoundException.

Parameter solutionVersionArn : The Amazon Resource Name (ARN) of the solution version for which to get metrics.

Implementation

Future<GetSolutionMetricsResponse> getSolutionMetrics({
  required String solutionVersionArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonPersonalize.GetSolutionMetrics'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'solutionVersionArn': solutionVersionArn,
    },
  );

  return GetSolutionMetricsResponse.fromJson(jsonResponse.body);
}