send_event

FraudDetector.Client.send_event(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.send_event(
    eventId='string',
    eventTypeName='string',
    eventTimestamp='string',
    eventVariables={
        'string': 'string'
    },
    assignedLabel='string',
    labelTimestamp='string',
    entities=[
        {
            'entityType': 'string',
            'entityId': 'string'
        },
    ]
)
Parameters
  • eventId (string) --

    [REQUIRED]

    The event ID to upload.

  • eventTypeName (string) --

    [REQUIRED]

    The event type name of the event.

  • eventTimestamp (string) --

    [REQUIRED]

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

  • eventVariables (dict) --

    [REQUIRED]

    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.

    • (string) --
      • (string) --
  • assignedLabel (string) -- The label to associate with the event. Required if specifying labelTimestamp .
  • labelTimestamp (string) -- The timestamp associated with the label. Required if specifying assignedLabel .
  • entities (list) --

    [REQUIRED]

    An array of entities.

    • (dict) --

      The entity details.

      • entityType (string) -- [REQUIRED]

        The entity type.

      • entityId (string) -- [REQUIRED]

        The entity ID. If you do not know the entityId , you can pass unknown , which is areserved string literal.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • FraudDetector.Client.exceptions.ValidationException
  • FraudDetector.Client.exceptions.ConflictException
  • FraudDetector.Client.exceptions.ResourceNotFoundException
  • FraudDetector.Client.exceptions.InternalServerException
  • FraudDetector.Client.exceptions.ThrottlingException
  • FraudDetector.Client.exceptions.AccessDeniedException