startDetectorModelAnalysis method

Future<StartDetectorModelAnalysisResponse> startDetectorModelAnalysis({
  1. required DetectorModelDefinition detectorModelDefinition,
})

Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.

May throw InternalFailureException. May throw InvalidRequestException. May throw LimitExceededException. May throw ServiceUnavailableException. May throw ThrottlingException.

Implementation

Future<StartDetectorModelAnalysisResponse> startDetectorModelAnalysis({
  required DetectorModelDefinition detectorModelDefinition,
}) async {
  final $payload = <String, dynamic>{
    'detectorModelDefinition': detectorModelDefinition,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/analysis/detector-models',
    exceptionFnMap: _exceptionFns,
  );
  return StartDetectorModelAnalysisResponse.fromJson(response);
}