From 78182802b2d1f1c22df42ff7b3f811082c47ee07 Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Mon, 3 Feb 2025 09:39:42 +0100 Subject: [PATCH] Created Teams Alert Webhook --- Webhooks/Teams-alerts.json | 149 +++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 Webhooks/Teams-alerts.json diff --git a/Webhooks/Teams-alerts.json b/Webhooks/Teams-alerts.json new file mode 100644 index 0000000..e141ac0 --- /dev/null +++ b/Webhooks/Teams-alerts.json @@ -0,0 +1,149 @@ +{ + "type": "message", + "attachments": [ + { + "contentType": "application/vnd.microsoft.card.adaptive", + "contentUrl": null, + "content": { + "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "msteams": { + "width": "Full" + }, + "body": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "items": [ + { + "type": "Image", + "style": "person", + "url": "https://amidaware.com/images/amidaware.jpg", + "altText": "TacticalRMM", + "size": "small" + } + ], + "width": "auto" + }, + { + "type": "Column", + "items": [ + { + "type": "TextBlock", + "weight": "bolder", + "text": "TacticalRMM", + "wrap": true, + "size": "heading" + }, + { + "type": "TextBlock", + "spacing": "none", + "text": "{{alert.alert_time}}", + "isSubtle": true, + "wrap": true + } + ], + "width": "stretch" + } + ] + }, + { + "type": "ColumnSet", + "isVisible": true, + "columns": [ + { + "type": "Column", + "isVisible": true, + "items": [ + { + "type": "RichTextBlock", + "inlines": [ + { + "type": "TextRun", + "text": "Agent: {{agent.hostname}}", + "wrap": true, + "color": "default", + "weight": "bolder" + } + ] + } + ] + }, + { + "type": "Column", + "isVisible": true, + "items": [ + { + "type": "RichTextBlock", + "inlines": [ + { + "type": "TextRun", + "text": "Client: {{agent.site.client.name}}", + "wrap": true, + "color": "default" + } + ] + } + ] + } + ] + }, + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "stretch", + "style": "emphasis", + "minHeight": "40px", + "items": [ + { + "type": "TextBlock", + "text": "Type: {{alert.alert_type}}", + "wrap": true + }, + { + "type": "TextBlock", + "text": "Severity: {{alert.severity}}", + "wrap": true + }, + { + "type": "TextBlock", + "text": "Message: {{alert.message}}", + "wrap": true + }, + { + "type": "TextBlock", + "text": "Output: {{alert.get_result.stdout}}", + "wrap": true + } + ] + }, + { + "type": "Column", + "width": "auto", + "verticalContentAlignment": "center", + "isVisible": false, + "items": [ + { + "type": "ActionSet", + "isVisible": false, + "actions": [] + }, + { + "type": "ActionSet", + "isVisible": false, + "actions": [] + } + ] + } + ] + } + ] + } + } + ] +}