Skip to main content

Send incident notifications to Webex

APEX AIOps Incident Management can forward incident notifications to Webex. Follow these steps to configure an incident webhook endpoint to send incidents to a specific team space.

Before you begin

Before you set up your Webex outbound integration:

  • Make sure you are signed into your Incident Management instance.

  • Make sure you are signed into Webex.

Set up an incoming webhook in Webex

  1. Log in to Webex App Hub at apphub.webex.com.

  2. Search for "Incoming Webhooks."

  3. Click the Incoming Webhooks tile, then click Connect.

  4. Follow the prompt to log in again.

  5. Click Accept.

  6. Scroll down. In the Webhook Name field, provide a name for your webhook, such as "Incident Management."

  7. In the Select a space field, select a team space from the list.

  8. Click Add.

  9. Copy the generated Webhook URL and save it somewhere for later use.

Configure the CREATE webhook endpoint in Incident Management

Once you have finished configuring the properties in Webex, you must create new incident webhook endpoints in Incident Management in order to send data to Webex. This section explains how to set up the Webex CREATE webhook endpoint, which sends notifications to Webex when incidents are created in Incident Management.

To configure the CREATE webhook endpoint:

  1. Log into Incident Management and navigate to Integrations > Outbound Integrations > Webhook Endpoint > Incident Webhook Endpoint.

  2. Click Add Incident Webhook Endpoint and enter "Webex CREATE" as the name of the webhook endpoint. Optionally, provide a description.

  3. Complete each section of the webhook endpoint according to the following:

    1. Skip the Triggers section.

    2. Configure the Endpoint:

      1. Set the Request Method to POST.

      2. Under URL, paste the Webhook URL that you copied from Webex.

      3. For Authorization, make sure No auth is selected.

    3. Specify the Payload Body:

      1. Replace the default payload in the Key/Value Editor with the following:

        {
            "markdown": "Incident #$id with severity $severity, status $status,  and description $description",
            "timestamp": "$created_at"
        }
      2. Scroll up to the top of the page and click Test in the upper right-hand corner. You should see response details and a confirmation that the webhook endpoint is configured correctly.

      3. Make additional payload adjustments according to your business needs. To learn more about fine-tuning your outbound payload, read Configure the CREATE payload body for a webhook endpoint.

    4. Save the webhook endpoint.

Configure the UPDATE webhook endpoint in Incident Management

Next, create a Webex UPDATE webhook endpoint, which sends notifications to Webex when Incident Management incidents are updated.

To configure the UPDATE webhook endpoint:

  1. Navigate to Integrations > Outbound Integrations > Webhook Endpoint > Incident Webhook Endpoint.

  2. At the far right side of the "Webex CREATE" webhook endpoint you just configured, click on the copy icon:

    WebexDuplicate.png
  3. Enter "Webex UPDATE" for the name of the duplicate webhook endpoint and click Duplicate.

  4. Click on the "Webex UPDATE" webhook endpoint to open it.

  5. Click Edit.

  6. Under the Triggers section, select the conditions that you would like to trigger the webhook endpoint.

  7. Skip to the Payload Body section:

    1. Replace the payload in the Key/Value Editor with the following:

      {
          "markdown": "Updated Incident #$id with severity $severity, status $status,  and description $description",
          "timestamp": "$created_at"
      }
    2. Scroll up to the top of the page and click Test in the upper right-hand corner. You should see response details and a confirmation that the webhook endpoint is configured correctly.

    3. Make additional payload adjustments according to your business needs. To learn more about fine-tuning your outbound payload, read Configure the UPDATE payload body for a webhook endpoint.

  8. Save the webhook endpoint.

Configure the CREATE workflow in Incident Management

Configure an incident workflow called Webex CREATE Workflow, which triggers the "Webex CREATE" webhook endpoint when an incident is created in Incident Management.

To configure the CREATE workflow:

  1. Log into Incident Management and navigate to Correlate & Automate > Workflow Engine > Incident Workflows.

  2. Click Add Workflow and enter "Webex CREATE Workflow" as the name of the workflow. Optionally, provide a description.

  3. For the Trigger, select New incidents only.

    If desired, add a filter condition on the incidents that you wish to forward to Webex.

  4. Click Add Action, select the Send to Endpoint action and then click Add Selected Action.

  5. Select the new Send to Endpoint action complete each section according to the following:

    1. Webhook: Select the "Webex CREATE" incident webhook endpoint that you created earlier.

    2. External Link: Skip this section.

    3. Integration Name: Enter the following (without quotes): "Webex Integration"

      Skip all remaining sections.

  6. Save and Enable the workflow.

Configure the UPDATE workflow in Incident Management

Finally, configure another incident workflow called Webex UPDATE Workflow, which triggers the "Webex UPDATE" webhook endpoint to send data when an incident is updated in Incident Management.

To configure the UPDATE workflow:

  1. Navigate to Correlate & Automate > Workflow Engine > Incident Workflows.

  2. Click Add Workflow and enter "Webex UPDATE Workflow" as the name of the workflow. Optionally, provide a description.

  3. For the Trigger, select Changed incidents only.

  4. Click Add Action, select the Send to Endpoint action and then click Add Selected Action.

  5. Select the new Send to Endpoint action and complete each section as follows:

    1. Webhook: Select the "Webex UPDATE" incident webhook endpoint that you created earlier.

    2. External Link: Skip this section.

    3. Integration Name: Enter the following: "Webex Integration"

      Skip all remaining sections.

  6. Save and Enable the workflow.

Test the integration

  1. Navigate to Integrations > Ingestion Services > Events API.

  2. Add your API key to the provided cURL command and run the command in an external terminal to send an event to Incident Management.

  3. Verify that an incident has been created in Incident Management.

  4. Within Webex, verify that an incident notification has arrived. You should also see the test notification(s) you sent earlier.

  5. If you have enabled updates and included Status changed as a trigger, close the incident in Incident Management and verify in Webex that an update notification has arrived.