Retrieves runtime information about a detector model analysis.
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.
Raises:
Source code in docs_src/capo_iot_events/_services/async_io_t_events.py
| async def describe_detector_model_analysis(
self,
analysis_id: "capo_iot_events.types.analysis_id.AnalysisId",
*,
config_overrides: Optional[AsyncIoTEventsClientConfig] = None,
) -> "capo_iot_events.types.describe_detector_model_analysis_response.DescribeDetectorModelAnalysisResponse":
"""<p>Retrieves runtime information about a detector model analysis.</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>
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.describe_detector_model_analysis_request.DescribeDetectorModelAnalysisRequest]",
) -> AsyncOperationResponse[
"capo_iot_events.types.describe_detector_model_analysis_response.DescribeDetectorModelAnalysisResponse"
]:
import capo_iot_events._operations.iot_columbo_service.describe_detector_model_analysis
(
output,
http_response,
) = await capo_iot_events._operations.iot_columbo_service.describe_detector_model_analysis.async_describe_detector_model_analysis(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeDetectorModelAnalysis")
)
input_: capo_iot_events.types.describe_detector_model_analysis_request.DescribeDetectorModelAnalysisRequest = {
"analysis_id": analysis_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|