blob: 6ae9db5c4f5c86920a011c9fc9f1cb950009840d [file] [log] [blame]
:mod:`airflow.contrib.operators.segment_track_event_operator`
=============================================================
.. py:module:: airflow.contrib.operators.segment_track_event_operator
Module Contents
---------------
.. py:class:: SegmentTrackEventOperator(user_id, event, properties=None, segment_conn_id='segment_default', segment_debug_mode=False, *args, **kwargs)
Bases: :class:`airflow.models.BaseOperator`
Send Track Event to Segment for a specified user_id and event
:param user_id: The ID for this user in your database. (templated)
:type user_id: str
:param event: The name of the event you're tracking. (templated)
:type event: str
:param properties: A dictionary of properties for the event. (templated)
:type properties: dict
:param segment_conn_id: The connection ID to use when connecting to Segment.
:type segment_conn_id: str
:param segment_debug_mode: Determines whether Segment should run in debug mode.
Defaults to False
:type segment_debug_mode: bool
.. attribute:: template_fields
:annotation: = ['user_id', 'event', 'properties']
.. attribute:: ui_color
:annotation: = #ffd700
.. method:: execute(self, context)