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

# JD Cloud monitoring integration

> Sync JD Cloud monitoring alert events to Flashduty On-call via webhook for automated alert noise reduction

<div className="hide">
  ## In Flashduty On-call

  ***

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

  ### Using private integration

  Choose this method when you don't need to route alert events to different channels — it's simpler.

  <AccordionGroup>
    <Accordion title="Expand">
      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 **JD Cloud Monitoring** integration and click **Save** to generate a card
      4. Click the generated card to view the **Push URL**, copy it for later use
    </Accordion>
  </AccordionGroup>

  ### Using shared integration

  Choose this method when you need to route alerts to different channels based on the alert event payload.

  <AccordionGroup>
    <Accordion title="Expand">
      1. Go to the Flashduty console, select **Integration Center => Alert Events** to enter the integration selection page
      2. Select **JD Cloud Monitoring** integration:
         * **Integration Name**: Define a name for this integration
      3. Configure the default route and select the corresponding channel (after creation, go to `Route` to configure more routing rules)
      4. Click **Save** and copy the newly generated **Push URL** for later use
    </Accordion>
  </AccordionGroup>
</div>

## In JD Cloud

***

<Steps>
  <Step title="Create notification template">
    1. Log in to the JD Cloud console, search for **Monitoring**, and enter the corresponding console
    2. In the left menu, select **Alarm Management → Notice Templates**, and create or edit a notification template
    3. Check **Alert Callback** and enter the integration push URL in the `URL` field
    4. Enter the following template content in the `POST` input box:

    ```json theme={null}
    {
      "resource_id": "${resourceId}",
      "request_id": "${requestId}",
      "metric": "${metric}",
      "current_value": "${currentValue}",
      "times": "${times}",
      "tags": "${tags}",
      "alert_time": "${alertTime}",
      "region": "${region}",
      "threshold": "${threshold}",
      "service_code": "${serviceCode}",
      "as_group_id": "${asGroupId}",
      "unhealthy_instance": "${unhealthyInstance}",
      "rule_policy_id": "${rulePolicyId}",
      "service_code_en": "${serviceCodeEN}",
      "service_code_cn": "${serviceCodeCN}",
      "level": "${level}",
      "resource_name": "${resourceName}",
      "ip_address": "${ipAddress}",
      "status": "${status}"
    }
    ```

    5. Configure other options as needed and click **Save**
  </Step>

  <Step title="Configure alert rules">
    1. In the left menu, select **Alarm Management → Alarm Rules**, and create or edit an alert rule
    2. In the **Notification Policy** section, select **Use Template** and choose the template created in the previous step
    3. Configure other options as needed and click **Save**
  </Step>

  <Step title="Verify integration">
    Go back to the Flashduty console integration list page. If the latest event time is displayed, the configuration is successful and events are being received.
  </Step>
</Steps>

## Severity mapping

***

<div className="md-block">
  JD Cloud Monitoring to Flashduty severity mapping:

  | JD Cloud Monitoring | Flashduty | Status   |
  | :------------------ | :-------- | :------- |
  | Critical            | Critical  | Critical |
  | Major               | Warning   | Warning  |
  | General             | Info      | Info     |
</div>
