Skip to content

/AWS1/CL_FDT=>GETEVENTPREDICTION()

About GetEventPrediction

Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.

Method Signature

IMPORTING

Required arguments:

IV_DETECTORID TYPE /AWS1/FDTSTRING /AWS1/FDTSTRING

The detector ID.

IV_EVENTID TYPE /AWS1/FDTSTRING /AWS1/FDTSTRING

The unique ID used to identify the event.

IV_EVENTTYPENAME TYPE /AWS1/FDTSTRING /AWS1/FDTSTRING

The event type associated with the detector specified for the prediction.

IT_ENTITIES TYPE /AWS1/CL_FDTENTITY=>TT_LISTOFENTITIES TT_LISTOFENTITIES

The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."

IV_EVENTTIMESTAMP TYPE /AWS1/FDTUTCTIMESTAMPISO8601 /AWS1/FDTUTCTIMESTAMPISO8601

Timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.

IT_EVENTVARIABLES TYPE /AWS1/CL_FDTEVENTVARIABLEMAP_W=>TT_EVENTVARIABLEMAP TT_EVENTVARIABLEMAP

Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

You must provide at least one eventVariable

To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:

For Amazon Fraud Detector trained models:

If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.

For imported SageMaker models:

If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.

Optional arguments:

IV_DETECTORVERSIONID TYPE /AWS1/FDTWHOLENUMBERVRSSTRING /AWS1/FDTWHOLENUMBERVRSSTRING

The detector version ID.

IT_EXTERNALMDELENDPTDATABL00 TYPE /AWS1/CL_FDTMODELENDPTDATABLOB=>TT_EXTERNALMDELENDPTDATABLOB00 TT_EXTERNALMDELENDPTDATABLOB00

The Amazon SageMaker model endpoint input data blobs.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_FDTGETEVTPREDICTIONRS /AWS1/CL_FDTGETEVTPREDICTIONRS