airflow.contrib.sensors.jira_sensor
¶
Module Contents¶
-
class
airflow.contrib.sensors.jira_sensor.
JiraSensor
(jira_conn_id='jira_default', method_name=None, method_params=None, result_processor=None, *args, **kwargs)[source]¶ Bases:
airflow.sensors.base_sensor_operator.BaseSensorOperator
Monitors a jira ticket for any change.
- Parameters
-
class
airflow.contrib.sensors.jira_sensor.
JiraTicketSensor
(jira_conn_id='jira_default', ticket_id=None, field=None, expected_value=None, field_checker_func=None, *args, **kwargs)[source]¶ Bases:
airflow.contrib.sensors.jira_sensor.JiraSensor
Monitors a jira ticket for given change in terms of function.
- Parameters
jira_conn_id (str) – reference to a pre-defined Jira Connection
ticket_id (str) – id of the ticket to be monitored
field (str) – field of the ticket to be monitored
expected_value (str) – expected value of the field
result_processor (function) – function that return boolean and act as a sensor response