Skip to content

list_inference_events async

list_inference_events(
    inference_scheduler_name: InferenceSchedulerIdentifier,
    interval_start_time: Timestamp,
    interval_end_time: Timestamp,
    *,
    config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListInferenceEventsResponse

Lists all inference events that have been found for the specified inference scheduler.

Parameters:

  • next_token (Optional[NextToken], default: None ) –

    An opaque pagination token indicating where to continue the listing of inference events.

  • max_results (Optional[MaxResults], default: None ) –

    Specifies the maximum number of inference events to list.

  • inference_scheduler_name (InferenceSchedulerIdentifier) –

    The name of the inference scheduler for the inference events listed.

  • interval_start_time (Timestamp) –

    Lookout for Equipment will return all the inference events with an end time equal to or greater than the start time given.

  • interval_end_time (Timestamp) –

    Returns all the inference events with an end start time equal to or greater than less than the end time given.

Raises:

  • AccessDeniedException –

    The request could not be completed because you do not have access to the resource.

  • InternalServerException –

    Processing of the request has failed because of an unknown error, exception or failure.

  • ResourceNotFoundException –

    The resource requested could not be found. Verify the resource ID and retry your request.

  • ThrottlingException –

    The request was denied due to request throttling.

  • ValidationException –

    The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
async def list_inference_events(
    self,
    inference_scheduler_name: "capo_lookoutequipment.types.inference_scheduler_identifier.InferenceSchedulerIdentifier",
    interval_start_time: "capo_lookoutequipment.types.timestamp.Timestamp",
    interval_end_time: "capo_lookoutequipment.types.timestamp.Timestamp",
    *,
    config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
    next_token: Optional["capo_lookoutequipment.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_lookoutequipment.types.max_results.MaxResults"
    ] = None,
) -> "capo_lookoutequipment.types.list_inference_events_response.ListInferenceEventsResponse":
    """<p> Lists all inference events that have been found for the specified inference scheduler. </p>

    Args:
        next_token: <p>An opaque pagination token indicating where to continue the listing of inference events.</p>
        max_results: <p>Specifies the maximum number of inference events to list. </p>
        inference_scheduler_name: <p>The name of the inference scheduler for the inference events listed. </p>
        interval_start_time: <p> Lookout for Equipment will return all the inference events with an end time equal to or greater than the start time given.</p>
        interval_end_time: <p>Returns all the inference events with an end start time equal to or greater than less than the end time given.</p>

    Raises:
        capo_lookoutequipment.errors.access_denied_exception.AccessDeniedException: <p>The request could not be completed because you do not have access to the resource. </p>
        capo_lookoutequipment.errors.internal_server_exception.InternalServerException: <p> Processing of the request has failed because of an unknown error, exception or failure. </p>
        capo_lookoutequipment.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource requested could not be found. Verify the resource ID and retry your request. </p>
        capo_lookoutequipment.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_lookoutequipment.errors.validation_exception.ValidationException: <p> The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized. </p>
        capo_lookoutequipment.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_lookoutequipment.types.list_inference_events_request.ListInferenceEventsRequest]",
    ) -> AsyncOperationResponse[
        "capo_lookoutequipment.types.list_inference_events_response.ListInferenceEventsResponse"
    ]:
        import capo_lookoutequipment._operations.aws_lookout_equipment_frontend_service.list_inference_events

        (
            output,
            http_response,
        ) = await capo_lookoutequipment._operations.aws_lookout_equipment_frontend_service.list_inference_events.async_list_inference_events(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListInferenceEvents")
    )
    input_: capo_lookoutequipment.types.list_inference_events_request.ListInferenceEventsRequest = {
        "inference_scheduler_name": inference_scheduler_name,
        "interval_start_time": interval_start_time,
        "interval_end_time": interval_end_time,
    }
    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