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

# zstack integration

> Push ZStack alerts to Flashduty via webhook, to achieve automatic alert noise reduction.

Push ZStack alerts to Flashduty via webhook, to achieve automatic alert noise reduction.

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

  ***

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

  ### Using Dedicated Integration

  Choose this method when you don't need to route alert events to different channels. It's simpler and recommended.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Channel**, and enter a channel's details page
    2. Select the **Integration** tab, click **Add Integration** to enter the integration page
    3. Choose **ZStack** 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 method 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 **ZStack** 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 ZStack

***

<div class="md-block">
  ## 一、Create Notification Object

  ### Step 1: Create Notification Object

  1. Login to your `ZStack` console, find `Cloud Monitoring` in the `Platform O&M` menu
  2. Click `Endpoint`, click `Create Endpoint` or edit the existing endpoint
  3. In the edit page, Name it `Flashduty`, select `Webhook` type, and fill in the <span class="integration_url">push URL</span> of the alert integration
  4. Click `Send Test Message`, if the message is sent successfully, it means the configuration is successful
  5. Click `OK` to complete the configuration

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

  ### Step 2: Use Notification Object in Alert Policy

  1. Login to your `ZStack` console, find `Cloud Monitoring` in the `Platform O&M` menu
  2. Click `Alarm`, click `Create Resource Alarm` or `Create Event Alarm`, or edit the existing alarm object
  3. In the edit page, select the created `Flashduty` Endpoint (`Resource Alarm` is recommended to open the recovery notification)
  4. Configure other settings as needed, and click `OK` to complete the configuration

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

## 二、Status Mapping

<div class="md-block">
  | ZStack   | Flashduty | Status   |
  | -------- | --------- | -------- |
  | Emergent | Critical  | Critical |
  | Major    | Warning   | Warning  |
  | Info     | Info      | Info     |
</div>
