Data analysis: Expand alarm notification channels such as corporate WeChat, DingTalk, and Feishu

This chapter mainly describes how to expand the alarm notification channel so that alarms can be sent to third-party applications.

Enterprise WeChat

Goals

●After the alarm created in Honghu is triggered, the alarm notification will be sent to the designated enterprise WeChat group chat

Configuration steps

1. Open "Enterprise WeChat" and click the "..." button in the upper right corner of the alarm group

2. Click "Group Robots"

3. Click "Add Group Robot"

4. Click "New" in the upper right corner

5. Click "Copy" to copy the Webhook address so that Honghu can configure the "Webhook"

6. Create an alarm or edit an alarm in Honghu

a. Add "Web Hook" as "Trigger Action"

b. Paste the link address copied in step 5 into "Website"

c. Select "POST" as the request method

d. Fill in the "Header"

{ "Content-Type": "application/json" }

e. Fill in "Load"

{"msgtype": "text","text": {"content":"Message content"}}

7. When an alarm is triggered, you can see the corresponding alarm message in the alarm group.

DingTalk

Goals

●After the alarm created in Honghu is triggered, the alarm notification will be sent to the designated DingTalk group.

Configuration steps

1. Open "DingTalk" and click the "Group Settings" button in the upper right corner of the alarm group

2. Click "Smart Group Assistant"

3. Click "..." to the right of "Add Robot"

4. Select "Customize"

5. Click "Add"

6. Enter the "Robot Name", set the "Security Settings", check "I have read and agree to the "Custom Robot Service and Disclaimer", and click "Finish"

a. Based on the options currently provided by "Web Hook" in Honghu, "Security Settings" recommends configuring "custom keywords" and entering the keyword content.

b. Since "security settings" must be configured for DingTalk's robot management, at least one configuration needs to be provided.

7. Copy the link address of "Webhook" so that Honghu can configure the "Webhook"

8. Create or edit alarms in Honghu

a. Add "Web Hook" as "Trigger Action"

b. Paste the link address copied in step 7 into "Website"

c. Select "POST" as the request method

d. Fill in the "Header"

{ "Content-Type": "application/json" }

e. Fill in "Load"

{"msgtype": "text","text": {"content":"Message content"}}

Note: The message content needs to contain the keywords defined in "Security Settings" in step 6, otherwise the message will be filtered and cannot enter the alarm group

9. When an alarm is triggered, you can see the corresponding alarm message in the alarm group.

Feishu

Goals

●After the alarm created in Honghu is triggered, the alarm notification will be sent to the designated Feishu group

Configuration steps

1. Open "Feishu", in the alarm group, click "..." in the upper right corner, and then click "Settings"

2. Click "Group Robots"

3. Click "Add Robot"

4. Click the "Add" button to the right of "Custom Robot"

5. Enter the "Robot Name" and "Description", then click "Add"

6. Click "Copy" "Webhook Address" to configure the webhook

7. Create an alarm or edit an alarm in Honghu

a. Add "Web Hook" as "Trigger Action"

b. Paste the link address copied in step 6 into "Website"

c. Select "POST" as the request method

d. Fill in the "Header"

{ "Content-Type": "application/json" }

e. Fill in "Load"

{"msg_type":"text","content":{"text":"Message content"}}

8. When an alarm is triggered, you can see the corresponding alarm message in the alarm group.

Guess you like

Origin blog.csdn.net/Yhpdata888/article/details/131729698