get_event_prediction_metadata
¶
get_event_prediction_metadata(
event_id: identifier,
event_type_name: identifier,
detector_id: identifier,
detector_version_id: wholeNumberVersionString,
prediction_timestamp: time,
*,
config_overrides: Optional[FraudDetectorClientConfig] = 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/fraud_detector.py
2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 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 | |