airflow.providers.datadog.sensors.datadog

Module Contents

Classes

DatadogSensor

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

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.

Parameters
  • 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 (str | None) – Priority of your events, either low or normal.

  • sources (str | None) – A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope

  • tags (list[str] | None) – Get datadog events from specific sources.

  • response_check (Callable[[dict[str, Any]], bool] | None) – 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 – Callable[[dict[str, Any]], bool] | None

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

Override when deriving this class.

Was this entry helpful?