The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.9
Teams
Package: flyte.notify
Send Microsoft Teams notifications with optional Adaptive Cards.
Example:
```python
Teams(
on_phase=ActionPhase.SUCCEEDED,
webhook_url="https://outlook.office.com/webhook/YOUR_WEBHOOK_URL",
title="✅ Task Complete",
message="Task {task.name} completed in {run.duration}
View Details" ) ```
Args:
on_phase:ActionPhase(s) to trigger notification
webhook_url: Microsoft Teams webhook URL
title: Message card title (supports template variables)
message: Simple text message (supports template variables)
card: Optional Adaptive Card for rich formatting
(if provided, title and message are ignored).
See: https://adaptivecards.io/designer/
Parameters
class Teams(
on_phase: typing.Union[flyte.models.ActionPhase, typing.Tuple[flyte.models.ActionPhase, ...]],
webhook_url: str,
title: str,
message: typing.Optional[str],
card: typing.Optional[typing.Dict[str, typing.Any]],
)| Parameter | Type | Description |
|---|---|---|
on_phase |
typing.Union[flyte.models.ActionPhase, typing.Tuple[flyte.models.ActionPhase, ...]] |
|
webhook_url |
str |
|
title |
str |
|
message |
typing.Optional[str] |
|
card |
typing.Optional[typing.Dict[str, typing.Any]] |