Module Contents



A sensor to listen, with a filter, to datadog event streams and determine

class airflow.providers.datadog.sensors.datadog.DatadogSensor(*, datadog_conn_id='datadog_default', from_seconds_ago=3600, up_to_seconds_from_now=0, priority=None, sources=None, tags=None, response_check=None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

A sensor to listen, with a filter, to datadog event streams and determine if some event was emitted.

Depends on the datadog API, which has to be deployed on the same server where Airflow runs.

  • datadog_conn_id (str) -- The connection to datadog, containing metadata for api keys.

  • from_seconds_ago (int) -- POSIX timestamp start (default 3600).

  • up_to_seconds_from_now (int) -- POSIX timestamp end (default 0).

  • priority (Optional[str]) -- Priority of your events, either low or normal.

  • sources (Optional[str]) -- A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope

  • tags (Optional[List[str]]) -- Get datadog events from specific sources.

  • response_check (Optional[Callable[[Dict[str, Any]], bool]]) -- A check against the ‘requests’ response object. The callable takes the response object as the first positional argument and optionally any number of keyword arguments available in the context dictionary. It should return True for ‘pass’ and False otherwise.

  • response_check -- Optional[Callable[[Dict[str, Any]], bool]]

ui_color = #66c3dd[source]
poke(self, context)[source]

Function that the sensors defined while deriving this class should override.

Was this entry helpful?