:doc:`FraudDetector <../../frauddetector>` / Client / send_event

**********
send_event
**********



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/SendEvent>`_  


  **Request Syntax**
  ::

    response = client.send_event(
        eventId='string',
        eventTypeName='string',
        eventTimestamp='string',
        eventVariables={
            'string': 'string'
        },
        assignedLabel='string',
        labelTimestamp='string',
        entities=[
            {
                'entityType': 'string',
                'entityId': 'string'
            },
        ]
    )
    
  :type eventId: string
  :param eventId: **[REQUIRED]** 

    The event ID to upload.

    

  
  :type eventTypeName: string
  :param eventTypeName: **[REQUIRED]** 

    The event type name of the event.

    

  
  :type eventTimestamp: string
  :param eventTimestamp: **[REQUIRED]** 

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

    

  
  :type eventVariables: dict
  :param eventVariables: **[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) --* 

      


  :type assignedLabel: string
  :param assignedLabel: 

    The label to associate with the event. Required if specifying ``labelTimestamp``.

    

  
  :type labelTimestamp: string
  :param labelTimestamp: 

    The timestamp associated with the label. Required if specifying ``assignedLabel``.

    

  
  :type entities: list
  :param entities: **[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.

        

      
    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ConflictException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`FraudDetector.Client.exceptions.InternalServerException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ThrottlingException`

  
  *   :py:class:`FraudDetector.Client.exceptions.AccessDeniedException`

  