getSolutionMetrics method

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

Gets the metrics for the specified solution version.

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

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

Implementation

Future<GetSolutionMetricsResponse> getSolutionMetrics({
  required String solutionVersionArn,
}) async {
  ArgumentError.checkNotNull(solutionVersionArn, 'solutionVersionArn');
  _s.validateStringLength(
    'solutionVersionArn',
    solutionVersionArn,
    0,
    256,
    isRequired: true,
  );
  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);
}