Skip to content

Commit

Permalink
Merge pull request #631 from logzio/microsoft-teams-aug26
Browse files Browse the repository at this point in the history
new code block
  • Loading branch information
Simplychee authored Aug 26, 2024
2 parents 4f37b31 + 5e3de59 commit 4b4a252
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions docs/user-guide/integrations/notification-endpoints/ms-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,40 @@ To use this example in your own endpoint, copy the payload. Note that double-bra

```
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Submitted response:"
}
]
}
}
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "title: {{alert_severity}}: {{alert_title}}"
},
{
"type": "TextBlock",
"text": "summary: {{alert_description}}"
},
{
"type": "TextBlock",
"text": "text: {{alert_samples}}"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "View in OpenSearch Dashboards",
"url": "{{alert_app_url}}#/view-triggered-alert?from={{alert_timeframe_start_epoch_millis}}&to={{alert_timeframe_end_epoch_millis}}&definitionId={{alert_definition_id}}&switchToAccountId={{account_id}}"
}
]
}
}
]
}
```
<!-- {% endraw %}-->

Expand Down

0 comments on commit 4b4a252

Please sign in to comment.