> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashcat.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynatrace Alert Events

> Sync Dynatrace alert events to Flashduty via webhook to achieve automated alert noise reduction.

Sync Dynatrace alert events to Flashduty via webhook to achieve automated alert noise reduction.

<div class="hide">
  ## In Flashduty

  ***

  You can obtain an integration push URL through either of these two methods:

  ### Using Private Integration

  Choose this simpler option when you don't need to route alert events to different channels.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Channel**, and enter a specific channel's details page
    2. Select the **Integration** tab, click **Add Integration** to enter the integration page
    3. Select **Dynatrace** integration and click **Save** to generate a card
    4. Click the generated card to view the **push URL**, copy it for later use, and you're done
  </details>

  ### Using Shared Integration

  Choose this option when you need to route alerts to different channels based on the alert event's payload information.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page
    2. Select **Dynatrace** integration:
       * **Integration Name**: Define a name for this integration
    3. Configure the default route and select the corresponding channel (after the integration is created, you can go to `Route` to configure more routing rules)
    4. Click **Save** and copy the newly generated **push URL** for later use
    5. Done
  </details>
</div>

## In Dynatrace

***

<div class="md-block">
  ## I. Dynatrace Alert Push Configuration

  1. Log in to your Dynatrace console
  2. Select `Apps` in the left navigation bar and find `Settings` in the `Manage` area

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/dyn-1.png" />

  3. Find `Integration` and select `Problem notifications`

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/dyn-2.png" />

  4. Click `Add notification`

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/dyn-3.png" />

  5. Under `Notification type`, select `Custom Integration`
  6. Fill in `Display name` with `Flashduty`
  7. In `Webhook URL`, enter the integration push URL (generated after saving the integration name on the current page)
  8. Keep `Call webhook if problem is closed` enabled

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/dyn-4.png" />

  9. Under `Custom payload`, enter the following content:

  ```
  {
      "State":"{State}",
      "PID":"{PID}",
      "ProblemTitle":"{ProblemTitle}",
      "ProblemImpact":"{ProblemImpact}",
      "ProblemDetails":"{ProblemDetailsText}",
      "ProblemURL":"{ProblemURL}",
      "ProblemSeverity":"{ProblemSeverity}",
      "ImpactedEntityNames":"{ImpactedEntityNames}",
      "Tags":"{Tags}"
  }
  ```

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/dyn-5.png" />

  10. Click `Save changes` to complete the setup

  ## II. Status Mapping

  | Dynatrace            | Flashduty | Status   |
  | -------------------- | --------- | -------- |
  | AVAILABILITY         | Critical  | critical |
  | ERROR                | Warning   | warning  |
  | PERFORMANCE          | Info      | info     |
  | RESOURCE\_CONTENTION | Info      | info     |
  | CUSTOM\_ALERT        | Info      | info     |
</div>
