idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
268 stars 84 forks source link

AdaptiveCards supported? #347

Open tgoehler opened 4 months ago

tgoehler commented 4 months ago

Description

does the project support adaptiveCard or just MessageCard type?

#

PirminTapken commented 3 months ago

Hi! You can use an Adaptive Cards like this:

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "content": {
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.2",
        "body": []
      }
    }
  ]
}