Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS - changing code #624

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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