Skip to main content

Teams

Send Microsoft Teams notifications with optional Adaptive Cards.

Attributes

AttributeTypeDescription
webhook_urlstrMicrosoft Teams webhook URL
titlestr = Task {task.name} {run.phase}Message card title (supports template variables)
messageOptional[str]Simple text message (supports template variables)
cardOptional[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

NameTypeDescription
on_phase[ActionPhase](../../models/actionphase.md?sid=flyte_models_actionphase)ActionPhase(s) to trigger notification
webhook_urlstrMicrosoft Teams webhook URL
titlestr = Task {task.name} {run.phase}Message card title (supports template variables)
messageOptional[str] = nullSimple text message (supports template variables)
cardOptional[Dict[str, Any]] = nullOptional Adaptive Card for rich formatting (if provided, title and message are ignored)