list_event_predictions
async
¶
list_event_predictions(
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
event_id: Optional[FilterCondition] = None,
event_type: Optional[FilterCondition] = None,
detector_id: Optional[FilterCondition] = None,
detector_version_id: Optional[FilterCondition] = None,
prediction_time_range: Optional[PredictionTimeRange] = None,
next_token: Optional[string] = None,
max_results: Optional[EventPredictionsMaxResults] = None,
) -> ListEventPredictionsResult
Gets a list of past predictions. The list can be filtered by detector ID, detector version ID, event ID, event type, or by specifying a time period. If filter is not specified, the most recent prediction is returned.
For example, the following filter lists all past predictions for xyz event type - { "eventType":{ "value": "xyz" }” }
This is a paginated API. If you provide a null maxResults, this action will retrieve a maximum of 10 records per page. If you provide a maxResults, the value must be between 50 and 100. To get the next page results, provide the nextToken from the response as part of your request. A null nextToken fetches the records from the beginning.
Parameters:
-
event_id(Optional[FilterCondition], default:None) –The event ID.
-
event_type(Optional[FilterCondition], default:None) –The event type associated with the detector.
-
detector_id(Optional[FilterCondition], default:None) –The detector ID.
-
detector_version_id(Optional[FilterCondition], default:None) –The detector version ID.
-
prediction_time_range(Optional[PredictionTimeRange], default:None) –The time period for when the predictions were generated.
-
next_token(Optional[string], default:None) –Identifies the next page of results to return. Use the token to make the call again to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
-
max_results(Optional[EventPredictionsMaxResults], default:None) –The maximum number of predictions to return for the request.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
InternalServerException–An exception indicating an internal server error.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 | |