Skip to content

Commit

Permalink
Merge pull request #624 from logzio/microsoft-teams-aug20
Browse files Browse the repository at this point in the history
MS - changing code
  • Loading branch information
Simplychee authored Aug 20, 2024
2 parents 8c89323 + 41a50ce commit 320e688
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions docs/user-guide/integrations/notification-endpoints/ms-teams.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
---
sidebar_position: 5
title: Configure an Endpoint for Microsoft Teams
description: Integrate Logz.io with Microsoft Teams
image: https://dytvr9ot2sszz.cloudfront.net/logz-docs/social-assets/docs-social.jpg
keywords: [ms, microsoft, microsoft teams, logz.io, integration]
---



# Configure an Endpoint for Microsoft Teams

:::warning note
Expand Down Expand Up @@ -33,7 +39,7 @@ This may include whitelisting Logz.io IPs and/or creating a verification token.
5. **Headers**: Add `Content-Type=application/json`.
6. **Payload**: Add your payload message. See the next step for details.

![Configure a custom endpoint](https://dytvr9ot2sszz.cloudfront.net/logz-docs/notification-endpoints/ms-teams-endpoint.png)
![Configure a custom endpoint](https://dytvr9ot2sszz.cloudfront.net/logz-docs/notification-endpoints/msteams-aug.png)


### 3. Add your payload
Expand All @@ -49,25 +55,25 @@ To use this example in your own endpoint, copy the payload. Note that double-bra

```
{
"@context": "https://schema.org/extensions",
"@type": "MessageCard",
"themeColor": "0072C6",
"title": "{{alert_severity}}: {{alert_title}}",
"summary": "{{alert_description}}",
"text": "{{alert_samples}}",
"potentialAction": [
{
"@type": "OpenUri",
"name": "View in OpenSearch Dashboards",
"targets": [
{
"os": "default",
"uri": "{{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}}"
"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:"
}
]
}
]
}
]
}
}
]
}
```
<!-- {% endraw %}-->

Expand Down

0 comments on commit 320e688

Please sign in to comment.