get_event_prediction_metadata
async
¶
get_event_prediction_metadata(
event_id: identifier,
event_type_name: identifier,
detector_id: identifier,
detector_version_id: wholeNumberVersionString,
prediction_timestamp: time,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
) -> GetEventPredictionMetadataResult
Gets details of the past fraud predictions for the specified event ID, event type, detector ID, and detector version ID that was generated in the specified time period.
Parameters:
-
event_id(identifier) –The event ID.
-
event_type_name(identifier) –The event type associated with the detector specified for the prediction.
-
detector_id(identifier) –The detector ID.
-
detector_version_id(wholeNumberVersionString) –The detector version ID.
-
prediction_timestamp(time) –The timestamp that defines when the prediction was generated. The timestamp must be specified using ISO 8601 standard in UTC.
We recommend calling ListEventPredictions first, and using the
predictionTimestampvalue in the response to provide an accurate prediction timestamp value.
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.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
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
2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 | |