Edge Delta Microsoft Teams Output

Trigger data to Microsoft Teams.

Overview

This output type sends notifications and alerts to a specified Teams channel.

Example

      - name: microsoft-teams-integration
        type: teams
        endpoint: "https://outlook.office.com/webhookb2/XXXXXXXXX-XXXX-XXXXXXXXXXXX/IncomingWebhook/XXXXXXXXXX/XXXXXXXXXXX"
        notify_content:
          title: "Anomaly Detected: {{.ProcessorDescription}}"
          disable_default_fields: false
          custom_fields:
            "Dashboard": "https://app.edgedelta.com/investigation?edac={{.EDAC}}&timestamp={{.Timestamp}}"
            "Current Value": "{{.CurrentValue}}"
            "Threshold Value": "{{.ThresholdValue}}"
            "Custom Message": "{{.CurrentValue}} exceeds {{.ThresholdValue}}"
            "Matched Term": "{{.MatchedTerm}}"

Parameters

name

Required

Enter a descriptive name for the output or integration.

For outputs, this name will be used to map this destination to a workflow.

name: microsoft-teams-integration

integration_name

Optional

This parameter refers to the organization-level integration created in the Integrations page.

If you need to add multiple instances of the same integration into the config, then you can add a custom name to each instance via the name parameter. In this situation, the name should be used to refer to the specific instance of the destination in the workflows.

integration_name: ed-alert-teams

type: teams

Required

Enter teams.

type: teams

endpoint

Required

Enter the Microsoft Teams webhook URL.

endpoint: "https://outlook.office.com/webhookb2/XX-X-XX-XX@XX--XX/IncomingWebhook/XX/XX-"

suppression_window

Optional

Enter a golang duration string that represents the suppression window. Once the agent detects an issue and notifies the endpoint, the agent will suppress any new issues for this time period.

The default setting is 20m.

suppression_window: 30m

suppression_mode

Optional

Enter a suppression mode, which can be local or global.

The default mode is local, which indicates that an individual agent suppresses an issue if the agent has already made a local notification for a similar issue in the last suppression window.

Global mode indicates that an individual agent checks with the Edge Delta backend to see if there were similar alerts from other sibling agents (agents that share the same tag in the configuration).

suppression_mode: local

notify_content: title

Optional

Enter a descriptive title for the notification.

You can use this parameter to customize the notification content.

This parameter supports templating.

notify_content: 
  title: "Anomaly Detected: {{.ProcessorDescription}}"

notify_content: disable_default_fields

Optional

Enter true or false to disable default fields in a notification.

If you disable default fields, then we recommend that you configure custom headers and custom fields.

notify_content: 
  disable_default_fields: false

custom_headers

Optional

This parameter is used to customize the notification content.

If you do not want to use default fields in a notification, then you can create custom headers and fields.

custom_headers: 
  X-header1: "test-header"

notify_content: custom_fields

Optional

If you do not want to use default fields in a notification, then you can create custom headers and fields.

custom_fields: 
  "Dashboard": "https://app.edgedelta.com/investigation?edac={{.EDAC}}&timestamp={{.Timestamp}}" 
  "Current Value": "{{.CurrentValue}}" 
  "Threshold Value": "{{.ThresholdValue}}"

advanced_content

Optional

A payload is JSON object that is used to define metadata about the message.

You are responsible for ensuring the validity of the JSON object.

Additionally, configurations you make in this parameter will override all other configurations, including custom_fields, title, and disable_default_fields.

[
    {
        "content": {
            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
            "body": [
                {
                    "columns": [
                        {
                            "items": [
                                {
                                    "text": "**{{ .Title }}**",
                                    "type": "TextBlock"
                                },
                                {
                                    "text": "{{ .Message }}",
                                    "type": "TextBlock"
                                }
                            ],
                            "width": "stretch"
                        }
                    ],
                    "spacing": "large",
                    "type": "ColumnSet"
                }
            ],
            "type": "AdaptiveCard",
            "version": "1.2"
        },
        "contentType": "application/vnd.microsoft.card.adaptive"
    }
]