Teams
Send Microsoft Teams notifications with optional Adaptive Cards.
Attributes
| Attribute | Type | Description |
|---|---|---|
| webhook_url | str | Microsoft Teams webhook URL |
| title | str = Task {task.name} {run.phase} | Message card title (supports template variables) |
| message | Optional[str] | Simple text message (supports template variables) |
| card | Optional[Dict[str, Any]] | Optional Adaptive Card for rich formatting (if provided, title and message are ignored). |
Constructor
Signature
def Teams(
on_phase: [ActionPhase](../../models/actionphase.md?sid=flyte_models_actionphase),
webhook_url: str,
title: str = Task {task.name} {run.phase},
message: Optional[str] = null,
card: Optional[Dict[str, Any]] = null
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| on_phase | [ActionPhase](../../models/actionphase.md?sid=flyte_models_actionphase) | ActionPhase(s) to trigger notification |
| webhook_url | str | Microsoft Teams webhook URL |
| title | str = Task {task.name} {run.phase} | Message card title (supports template variables) |
| message | Optional[str] = null | Simple text message (supports template variables) |
| card | Optional[Dict[str, Any]] = null | Optional Adaptive Card for rich formatting (if provided, title and message are ignored) |