blob: 795fc9ad5ca726d92c6578fc7b79ec5219f3cb28 [file] [log] [blame]
:mod:`airflow.contrib.hooks.segment_hook`
=========================================
.. py:module:: airflow.contrib.hooks.segment_hook
.. autoapi-nested-parse::
This module contains a Segment Hook
which allows you to connect to your Segment account,
retrieve data from it or write to that file.
NOTE: this hook also relies on the Segment analytics package:
https://github.com/segmentio/analytics-python
Module Contents
---------------
.. py:class:: SegmentHook(segment_conn_id='segment_default', segment_debug_mode=False, *args, **kwargs)
Bases::class:`airflow.hooks.base_hook.BaseHook`
.. method:: get_conn(self)
.. method:: on_error(self, error, items)
Handles error callbacks when using Segment with segment_debug_mode set to True