Created Teams Alert Webhook
This commit is contained in:
149
Webhooks/Teams-alerts.json
Normal file
149
Webhooks/Teams-alerts.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user