Webhook
Send custom HTTP webhook notifications (most flexible option).
Attributes
| Attribute | Type | Description |
|---|---|---|
| url | str | Webhook URL (supports template variables) |
| method | Literal["POST", "PUT", "PATCH", "GET", "DELETE", "HEAD", "OPTIONS", "TRACE", "CONNECT"] = POST | HTTP method (default: "POST") |
| headers | Optional[Dict[str, str]] = None | Optional HTTP headers (values support template variables) |
| body | Optional[Dict[str, Any]] = None | Optional request body as dict (all string values support template variables recursively) |
Constructor
Signature
def Webhook(
on_phase: [ActionPhase](../../models/actionphase.md?sid=flyte_models_actionphase) = null,
url: str = null,
method: Literal["POST", "PUT", "PATCH", "GET", "DELETE", "HEAD", "OPTIONS", "TRACE", "CONNECT"] = "POST",
headers: Optional[Dict[str, str]] = None,
body: Optional[Dict[str, Any]] = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| on_phase | [ActionPhase](../../models/actionphase.md?sid=flyte_models_actionphase) = null | ActionPhase(s) to trigger notification |
| url | str = null | Webhook URL (supports template variables) |
| method | Literal["POST", "PUT", "PATCH", "GET", "DELETE", "HEAD", "OPTIONS", "TRACE", "CONNECT"] = "POST" | HTTP method (default: "POST") |
| headers | Optional[Dict[str, str]] = None | Optional HTTP headers (values support template variables) |
| body | Optional[Dict[str, Any]] = None | Optional request body as dict (all string values support template variables recursively) |