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

# Huawei Cloud LTS Alert Events

> Sync Huawei Cloud Log Tank Service (LTS) alert events to Flashduty via webhook for automated alert noise reduction.

Sync Huawei Cloud Log Tank Service (LTS) alert events to Flashduty via webhook for 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 channel's details page
    2. Select the **Integrations** tab, click **Add Integration** to enter the integration page
    3. Choose **Huawei Cloud LTS** 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 **Huawei Cloud LTS** 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 Huawei Cloud

***

<div class="md-block">
  ## I. Huawei Cloud LTS Alert Push Configuration

  ### Step 1: Create Flashduty Alert Channel

  1. Log in to your Huawei Cloud Console, search for `SMN` (Simple Message Notification) service and enter its console
  2. Select `Topic Management=>Topics` from the left navigation bar
  3. Click `Create Topic`, enter `Flashduty` as the topic name in the edit page and confirm

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-1.png" alt="drawing" width="500" />

  4. Return to the topic list and click `Add Subscription` in the newly created Flashduty topic

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-2.png" alt="drawing" width="500" />

  5. In the edit page, select `HTTPS` as the protocol, enter the **push URL** as the subscription endpoint and confirm

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-3.png" alt="drawing" width="500" />

  6. After adding, check if the subscription status shows **Confirmed** in the subscription list

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-4.png" alt="drawing" width="500" />

  ### Step 2: Configure Log Alert Action Rules

  1. Log in to your Huawei Cloud Console, search for `LTS` (Log Tank Service) and enter its console
  2. Select `Log Alert=>Alert Action Rules=>Message Templates` from the left navigation bar and click `Create`

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-5.png" alt="drawing" width="500" />

  3. In the template edit page, enter **Flashduty** as the name, select `English` as the message header language
  4. Select `HTTP/HTTPS` as notification type and `JSON` as data type
  5. Click `Confirm` to save

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-6.png" alt="drawing" width="500" />

  6. Return to the `Alert Action Rules` list and click `Create`
  7. Enter **Flashduty** as the rule name, select the previously created **Flashduty** topic and template

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-7.png" alt="drawing" width="500" />

  ### Step 3: Use the Action Rule Created in Step 2 in Alert Rules

  1. Return to the `Alert Rules` list
  2. Create or edit existing alert rules
  3. Other configurations are omitted here
  4. In `Advanced Settings`, check both `Alert Trigger` and `Alert Recovery` in notification scenarios
  5. Enable action rules and select the **Flashduty** rule created in `Step 2`
  6. Select `English` as language, click `Confirm` to save after configuration is complete

  <img src="https://download.flashcat.cloud/flashduty/doc/en/hw/lts-8.png" alt="drawing" width="500" />
</div>

## II. Status Mapping

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