Storing event data using the SendEvent API operation - Amazon Fraud Detector

Storing event data using the SendEvent API operation

You can use the SendEvent API operation to store events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use the SendEvent operation to upload a historical dataset, which you can later use to train a model.

The following is an example SendEvent API call.

import boto3 fraudDetector = boto3.client('frauddetector') fraudDetector.send_event( eventId = '802454d3-f7d8-482d-97e8-c4b6db9a0428', eventTypeName = 'sample_registration', eventTimestamp = '2020-07-13T23:18:21Z', eventVariables = { 'email_address' : 'johndoe@exampledomain.com', 'ip_address' : '1.2.3.4'}, assignedLabel = ‘legit’, labelTimestamp = '2020-07-13T23:18:21Z', entities = [{'entityType':'sample_customer', 'entityId':'12345'}], )