How to use custom integrations

更新时间:
复制 MD 格式

This document describes how to configure custom integrations.

Introduction

Custom integration is a core feature of Event Hub that integrates services from custom scenarios. Push anomaly alerts to Event Hub in a standard JSON format. Then, use event streaming rules to trigger alerts or events for unified operations management (O&M). Follow these steps to complete the integration.

How to use custom integrations

Step 1: Find the custom integration

Go to the Event Hub console. In the navigation pane on the left, choose Integration Center > Custom Integration.

Step 2: Enter a name and generate a key

Enter an integration name and click Generate Key to save the integration name and generate a key.

Step 3: Push alert data to the URL or manually enter the alert message

Push an alert to the URL and click Auto Fetch to preview the alert message. Alternatively, you can manually enter the JSON fields.

Step 4: Parse fields and set field purposes

After you fetch or enter the alert message, click One-click Extract to automatically parse and format the alert message. You can then define field aliases, set field purposes, or sort the fields as needed.

  • Purpose 1: Trigger event streaming rules. If you select this purpose, the field can be used as a matching condition when you configure sub-rules for event streaming.

  • Purpose 2: Display in event notifications. If you select this purpose, the field is displayed on the notification card. The order of the fields in the configuration determines their display order on the card.

Step 5: Save the configuration

Click the Save Configuration button.