Retrieves one or more analysis results of the detector model.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
Parameters:
-
analysis_id
(AnalysisId)
–
The ID of the analysis result that you want to retrieve.
-
next_token
(Optional[NextToken], default:
None
)
–
The token that you can use to return the next set of results.
-
max_results
(Optional[MaxAnalysisResults], default:
None
)
–
The maximum number of results to be returned per request.
Raises:
Source code in docs_src/capo_iot_events/_services/async_io_t_events.py
| async def get_detector_model_analysis_results(
self,
analysis_id: "capo_iot_events.types.analysis_id.AnalysisId",
*,
config_overrides: Optional[AsyncIoTEventsClientConfig] = None,
next_token: Optional["capo_iot_events.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_iot_events.types.max_analysis_results.MaxAnalysisResults"
] = None,
) -> "capo_iot_events.types.get_detector_model_analysis_results_response.GetDetectorModelAnalysisResultsResponse":
"""<p>Retrieves one or more analysis results of the detector model.</p> <note> <p>After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.</p> </note>
Args:
analysis_id: <p>The ID of the analysis result that you want to retrieve.</p>
next_token: <p>The token that you can use to return the next set of results.</p>
max_results: <p>The maximum number of results to be returned per request.</p>
Raises:
capo_iot_events.errors.internal_failure_exception.InternalFailureException: <p>An internal failure occurred.</p>
capo_iot_events.errors.invalid_request_exception.InvalidRequestException: <p>The request was invalid.</p>
capo_iot_events.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource was not found.</p>
capo_iot_events.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
capo_iot_events.errors.throttling_exception.ThrottlingException: <p>The request could not be completed due to throttling.</p>
capo_iot_events.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iot_events.types.get_detector_model_analysis_results_request.GetDetectorModelAnalysisResultsRequest]",
) -> AsyncOperationResponse[
"capo_iot_events.types.get_detector_model_analysis_results_response.GetDetectorModelAnalysisResultsResponse"
]:
import capo_iot_events._operations.iot_columbo_service.get_detector_model_analysis_results
(
output,
http_response,
) = await capo_iot_events._operations.iot_columbo_service.get_detector_model_analysis_results.async_get_detector_model_analysis_results(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDetectorModelAnalysisResults")
)
input_: capo_iot_events.types.get_detector_model_analysis_results_request.GetDetectorModelAnalysisResultsRequest = {
"analysis_id": analysis_id
}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|