Skip to content

Commit 8737f1a

Browse files
authored
MCS-4334: change log, tutorial for webhook. (#118)
1 parent 3f0cd2d commit 8737f1a

File tree

15 files changed

+44
-6
lines changed

15 files changed

+44
-6
lines changed

content/en/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@
6767
* [2.22](change_log/2.22.md)
6868
* [2.23](change_log/2.23.md)
6969
* [2.25](change_log/2.25.md)
70+
* [2.26](change_log/2.26.md)
7071

7172

content/en/change_log/2.26.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 2018/08/23
2+
3+
## New Features
4+
1. Users are allowed to compose a customized HTTP request in Trigger & Action. This request will be sent out to the specified server when the trigger criteria are met. [more information](../tutorial/setting_notification)

content/en/change_log/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# MCS Change log Summary
22

3+
## 2018/08/23
4+
5+
### v2.26
6+
7+
[Users are allowed to compose a customized HTTP request in Trigger & Action.](./2.26)
8+
39

410
## 2018/07/25
511

-19.9 KB
Loading

content/en/tutorial/setting_notification.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ In the **Trigger & Action** tab in the test device page, expand the **Manage you
8787

8888
### Configuring the Webhook
8989

90-
There is no extra setting for webhook. To use webhook trigger, you only have to select the **webhook** as the action in the trigger & action setting and provide the callback URL that MCS makes an HTTP request to.
90+
The webhook action allows you to compose a custom HTTP request to send to a server.
91+
92+
To use webhook trigger, you only need select the **webhook** as the action type in the trigger & action setting and then specify the server **URL**, **request method**, **HTTP headers** and **HTTP body**. You can use the pre-defined variables in URL, value of HTTP header and Body fields.
9193

9294
![](../images/Trigger/img_trigger_08.png)
9395

94-
There is a Test button for you to test if the trigger has been sent to the URL. The device name, deviceId and the triggered value will be sent to the triggered URL.
96+
There is a Send webhook button for you to test if this HTTP request is able to sent to the destination along with the correct settings.
9597

9698

9799
### Configuring the Console Alert

content/zh-CN/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@
6767
* [2.22](change_log/2.22.md)
6868
* [2.23](change_log/2.23.md)
6969
* [2.25](change_log/2.25.md)
70+
* [2.26](change_log/2.26.md)
7071

content/zh-CN/change_log/2.26.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 2018/08/23
2+
3+
## 新功能
4+
1. 允许用户在 Trigger&Action 中编写自定义的 HTTP 请求。当触发条件符合时,此请求将发送到指定的服务器。[更多详情](../tutorial/setting_notification)

content/zh-CN/change_log/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# MCS 更新日志总览
22

3+
## 2018/08/23
4+
5+
### v2.26
6+
7+
[允许用户在 Trigger&Action 中编写自定义的 HTTP 请求。](./2.26)
8+
39
## 2018/07/25
410

511
### v2.25
-20.8 KB
Loading

content/zh-CN/tutorial/setting_notification.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@
8484

8585
### 设置 Webhook
8686

87-
要使用 webhook 触发动作,您只需要在设定触发条件时,选择 webhook 作为触发动作,并且输入您欲收到此触发通知之网址。当触发条件成立时,MCS 会发送一个 HTTP 请求到您提供的网址。
87+
触发动作中的 webhook,让您可以自行组合一个 HTTP 的请求,并在触发条件成立后发送到指定的服务器。
88+
89+
要使用此功能,您只需要在设定触发条件时,选择**webhook** 作为触发动作,并且指定服务器**网址****请求方法****HTTP 标头****请求内文**。此外,您也可以在网址、标头的值以及请求内文中使用系统预设的变数。(详细用法请参考后面章节)
8890

8991
![](../images/Trigger/img_trigger_08.png)
9092

91-
当您选择 webhook 触发动作后,您可以使用测试按钮,来测试是否通知有被送出。送出之资讯包含 装置名称, device ID 和触发值
93+
当您选择 webhook 触发动作后,您可以使用测试按钮,来测试此 HTTP 请求是否有正确的被送出
9294

9395
### 设定网页警报
9496

0 commit comments

Comments
 (0)