list_event_predictions
¶
list_event_predictions(
*,
config_overrides: Optional[FraudDetectorClientConfig] = 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/fraud_detector.py
3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 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 | |