aws.frauddetector.get_event_prediction
Example SQL Queries
SELECT * FROMaws.frauddetector.get_event_predictionWHERE"detector_id" = 'VALUE'AND "event_id" = 'VALUE'AND "event_type_name" = 'VALUE'AND "entities" = 'VALUE'AND "event_timestamp" = 'VALUE'AND "event_variables" = 'VALUE';Description
Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.
Table Definition
| Column Name | Column Data Type |
|---|---|
| detector_id Required Input Column The detector ID. | VARCHAR |
| entities Required Input Column 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." | STRUCT( |
Show child fields
| |
| event_id Required Input Column The unique ID used to identify the event. | VARCHAR |
| event_timestamp Required Input Column Timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC. | VARCHAR |
| event_type_name Required Input Column The event type associated with the detector specified for the prediction. | VARCHAR |
| event_variables Required Input Column 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. | MAP(VARCHAR, VARCHAR) |
| detector_version_id Input Column The detector version ID. | VARCHAR |
| external_model_endpoint_data_blobs Input Column The Amazon SageMaker model endpoint input data blobs. | MAP(VARCHAR, STRUCT( |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| external_model_outputs The model scores for Amazon SageMaker models. | STRUCT( |
Show child fields
| |
| model_scores The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate. | STRUCT( |
Show child fields
| |
| rule_results The results from the rules. | STRUCT( |
Show child fields
| |