Microsoft Teams
Synopsis
Sends alert notifications to Microsoft Teams channels using incoming webhooks, supporting Adaptive Card formatting with titles, text, facts, actions, and theme colors.
Schema
- msteams:
webhook_url: <string>
title: <string>
text: <string>
subtitle: <string>
image: <string>
theme_color: <string>
width: <string>
facts: <fact[]>
actions: <action[]>
description: <text>
if: <script>
ignore_failure: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
| Field | Required | Default | Description |
|---|---|---|---|
webhook_url | N | ${MSTEAMS_WEBHOOK_URL} | Microsoft Teams incoming webhook URL |
title | Y | - | Card title displayed prominently |
text | Y | - | Main message body text |
subtitle | N | - | Subtitle displayed below the title |
image | N | VirtualMetric icon | URL to image displayed in the card |
theme_color | N | #47BEFF | Card accent color: good, warning, danger, info, or hex code |
width | N | Full | Card width: Full for full-width cards |
facts | N | - | Array of fact objects with title and value fields |
actions | N | - | Array of action objects with title and url fields |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
disabled | N | false | When true, the processor is skipped and the event continues to the next one. Lets you take a processor out of the path without removing its configuration |
Details
The msteams processor sends notifications to Microsoft Teams channels using incoming webhooks with Adaptive Card formatting.
Webhook Setup: Create an incoming webhook in Teams:
- Open the target channel
- Click "..." → "Connectors" or "Workflows"
- Add "Incoming Webhook" connector
- Copy the webhook URL
Theme Colors: Visual severity indicators for the card's accent stripe:
good/ green hex: Success, resolved incidentswarning/ orange hex: Warnings, degraded statesdanger/ red hex: Errors, critical alertsinfo/ blue hex: Informational messages- Custom hex codes (e.g.,
#FF5733) for brand colors
Facts: Key-value pairs displayed in a structured format:
facts:
- title: "Server"
value: "{{hostname}}"
- title: "CPU"
value: "{{cpu_usage}}%"
Actions: Clickable buttons linking to external resources:
actions:
- title: "View Dashboard"
url: "https://dashboard.example.com/{{server}}"
Template Support: Five top-level fields are template-expanded — title, text, subtitle, image and theme_color — along with the title and value of each entry in facts, and the title and url of each entry in actions. Use {{field_name}} for the escaped value and {{{field_name}}} for the raw one. No other field is expanded.
For integration patterns with schema validation, see Schema Drift Detection.
Examples
Basic Alert
Sending a simple alert notification... | |
Red-themed alert card sent to Teams channel... |
Card with Facts
Including structured data as facts... | |
Facts displayed in structured format below text... |
Card with Actions
Adding clickable action buttons... | |
Action buttons link to analytics views and logs... |
Complete Card
Full-featured card with all elements... | |
Full-width card with image, facts, and actions... |
Schema Drift Alert
Alerting on schema validation failures... | |
Alert triggered automatically when schema drift detected... |