Summary: This thread explains how to build MS Teams Adaptive Cards for Dynatrace problem notifications. It includes details on required JSON structures, webhook configuration, and how to display relevant incident information in Teams.
MS Teams have moved to Adaptive Cards when sending content via a webhook, it took me some time to wrap my head around this but here is my simple card. Hopefully, you can extend it as needed. For some reason, it would only work in version 1.4, but that might be unique to our MS Teams.
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "{ProblemSeverity} - {ProblemImpact}",
"style": "heading",
"wrap": true
},
{
"type": "TextBlock",
"text": "{ProblemTitle}",
"wrap": true
},
{
"type": "FactSet",
"facts": [
{
"title": "PID:",
"value": "{PID}"
},
{
"title": "Problem Details:",
"value": "{ProblemDetailsText}"
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "View",
"url": "{ProblemURL}",
"role": "button"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}
}
]
}
This is what the test message looks like

