> ## 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.

# StateCloud Alert Events

> Sync StateCloud alert events to Flashduty via webhook for automated alert noise reduction

Sync StateCloud monitoring alert events to Flashduty via webhook for automated alert noise reduction.

For resource monitoring events from StateCloud [secondary nodes](#secondary-nodes), please use Huawei Cloud integration. Refer to [Huawei Cloud Alert Integration Guide](/en/on-call/integration/alert-integration/alert-sources/huawei-ces).

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

  ***

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

  ### Using Dedicated 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 channel's details page
    2. Select the **Integration** tab, click **Add Integration** to enter the integration page
    3. Select **StateCloud** 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 **StateCloud** 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 StateCloud

***

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

  1. Log in to your `StateCloud` console, search for the `Cloud Eye` product, and enter its console
  2. In `Alarm Service`, select `Alarm Contact/Group` and create corresponding alert contact/group
  3. In `Alarm Rules`, choose to create or modify Alarm rule
  4. In the alarm rule editing page, fill in the integration <span class="integration_url">push URL</span> under `Alert Callback` and click test
  5. After successful testing, click `Save`

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

## II. Status Mapping

<div class="md-block">
  | StateCloud | Flashduty | Status   |
  | ---------- | --------- | -------- |
  | Urgent     | Critical  | critical |
  | Warning    | Warning   | warning  |
  | Normal     | Info      | info     |

  ## III. StateCloud Secondary Node List<span id="secondary-nodes" />

  | Region      | Cities                                                                                                         |
  | ----------- | -------------------------------------------------------------------------------------------------------------- |
  | East China  | Hangzhou/Nanchang/Shanghai4/Suzhou/Wuhu                                                                        |
  | South China | Changsha2/Fuzhou1/Guangzhou4/Haikou/Nanning/Wuhan2                                                             |
  | Northwest   | Lanzhou/Urumqi/Xi'an2/Xining/Zhongwei                                                                          |
  | Southwest   | Chengdu3/Chongqing/Guizhou1/Kunming                                                                            |
  | North       | Beijing2/Changchun/Harbin/North China/Inner Mongolia3/Qingdao/Shenyang3/Shijiazhuang/Taiyuan/Tianjin/Zhengzhou |
</div>
