getDetectorModelAnalysisResults method
Retrieves one or more analysis results of the detector model.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter analysisId :
The ID of the analysis result that you want to retrieve.
Parameter maxResults :
The maximum number of results to be returned per request.
Parameter nextToken :
The token that you can use to return the next set of results.
Implementation
Future<GetDetectorModelAnalysisResultsResponse>
getDetectorModelAnalysisResults({
required String analysisId,
int? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/analysis/detector-models/${Uri.encodeComponent(analysisId)}/results',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetDetectorModelAnalysisResultsResponse.fromJson(response);
}