mendhak / Airflow-MS-Teams-Operator

Airflow operator that can send messages to MS Teams

Home Page:https://code.mendhak.com/Airflow-MS-Teams-Operator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Airflow operator that can send messages to MS Teams

Example:

op1 = MSTeamsWebhookOperator(task_id='msteamtest',
    http_conn_id='msteams_webhook_url',
    message = "Hello from Airflow!",
    subtitle = "This is the **subtitle**",
    button_text = "My button",
    button_url = "https://example.com",
    theme_color = "00FF00",
    #proxy = "https://yourproxy.domain:3128/",
    dag=dag)

Results in:

example

Usage and Setup (Airflow, MS Teams)

For setup and usage instructions see the writeup here

Contribute

Any feature requests, please fork and submit a PR.

Wishlist

Ability to create potentialActions as seen here:

https://docs.microsoft.com/en-us/outlook/actionable-messages/actionable-messages-via-connectors

License

Apache 2.0 (see code file headers)

About

Airflow operator that can send messages to MS Teams

https://code.mendhak.com/Airflow-MS-Teams-Operator/


Languages

Language:Python 100.0%