Description

Event can only be triggered by the user on a page with code snipped installed by Subscriber.triggerEvent method. The only argument that is being passed is the event name, which that is being used to identify the event.

Produces within a manager API endpoint after successful request.

class UserKafkaEventFront(BaseKafkaModel):
    _topic = 'user_custom_events_front'
 
    def __init__(self, event_id: int, subscriber_uuid: str, channel_id: int, timestamp: int = None,
                 attributes_json: str = None, **kwargs):
        super().__init__(**kwargs)
        self.event_id = event_id
        self.channel_id = channel_id
        self.subscriber_uuid = subscriber_uuid
        self.attributes_json = attributes_json or '{}'
        self.timestamp = timestamp or int(time.time())