7 years ago
Microsoft Teams
We recently moved from Slack to Microsoft Teams. I would like to get our alert integration working. Does anyone have a writeup of doing this?
Hi All!
I've tested this and it works. No reply options yet, but it's a start
Create a channel for webhooks in Teams copy that adress and use it in your Integration ( I copied a Slack integration)
And I've used the following JSON formatting
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "ff0000",
"title": "Company - LM Webhook Test",
"text":"Alerts!",
"sections": [{
"activityTitle": "Action Required!",
"activitySubtitle": "Here are the details",
"Facts": [{
"name": "Host:",
"value": "##HOST##"
}, {
"name": "Datasource",
"value": "##DATASOURCE##"
}, {
"name": "Displayname:",
"value": "##system.displayname##"
}, {
"name": "InstanceGroup:",
"value": "##INSTANCEGROUP##"
}, {
"name": "Datapoint:",
"value": "##DATAPOINT##"
}, {
"name": "Datapoint Description:",
"value": "##DPDESCRIPTION##"
}, {
"name": "Level:",
"value": "##LEVEL##"
}, {
"name": "Start:",
"value": "##START##"
}, {
"name": "Duration:",
"value": "##DURATION##"
}, {
"name": "Value:",
"value": "##VALUE##"
}, {
"name": "Threshold:",
"value": "##THRESHOLD##"
}, {
"name": "ClearValue:",
"value": "##CLEARVALUE##"
}, {
"name": "Reason:",
"value": "##DATAPOINT## ##THRESHOLD##"
}, {
"name": "Group:",
"value": "##GROUP##"
}],
"markdown": true
}]
}