About this integration
By configuring this resource, you can post messages to MS Teams from any Dagster op or asset.
Installation
pip install dagster-msteams
Example
# Read the docs on Resources to learn more: https://docs.dagster.io/deployment/resources
from dagster_msteams import Card, msteams_resource
from dagster import op, job
import os
@op(required_resource_keys={'msteams'})
def my_op(context):
card = Card()
card.add_attachment(text_message="Hello there!")
context.resources.msteams.post_message(payload=card.payload)
@job(resource_defs={
'msteams': msteams_resource.configured({
'hook_url': os.environ["TEAMS_WEBHOOK_URL"]
})
})
def my_job():
my_op()
About Microsoft Teams
Microsoft Teams is a business communication platform. Teams offers workspace chat and videoconferencing, file storage, and application integration.