Prechádzať zdrojové kódy

fix(doc): fix dead links and add compression method

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang 2 rokov pred
rodič
commit
a539e8afcd

+ 2 - 2
docs/en_US/integrations/neuron/neuron_integration_tutorial.md

@@ -111,7 +111,7 @@ Both Neuron and eKuiper support binary installation packages and Docker containe
 
 After Neuron starts, we need to configure Neuron's southbound device and northbound eKuiper application channel, and then start the simulator for simulated data acquisition.
 
-For southbound device and simulator configuration, please refer to the [Neuron Quick Tutorial](https://neugates.io/docs/en/latest/getting-started/quick_start.html#operation-and-use), to complete to the "Operation And Use/3. South configuration" section. The north configuration section of that tutorial is for the mqtt application, but this tutorial requires the eKuiper to be used as the northbound application.
+For southbound device and simulator configuration, please refer to the [Neuron Quick Tutorial](https://neugates.io/docs/en/latest/quick-start/southdevices-connect.html), to complete to the "Operation And Use/3. South configuration" section. The north configuration section of that tutorial is for the mqtt application, but this tutorial requires the eKuiper to be used as the northbound application.
 
 ### Neuron northbound eKuiper application configuration
 
@@ -125,7 +125,7 @@ Step 1: Add a north application.
    ![select app](https://neugates.io/docs/docs-assets/img/south-devices-add.6034f3a7.png)
 4. After the application is created successfully, a card of the application just created will appear in the North application management interface, at this time, the application is in the initialization state and the connection state is in the disconnection state.
 ![neuron ekuiper app](./neuron_ekuiper_app.png)
-5. 
+
 Step 2: Subscribe to Group.
 
 Click any blank space in the application card ekuiper-1 in the first step to enter the Group list management screen, as shown in the figure below.

+ 1 - 1
docs/en_US/sqls/built-in_functions.md

@@ -177,7 +177,7 @@ When casting to datetime type, the supported column type and casting rule are:
 | compress   | compress(input, "zlib")   | Compress the input string or binary value with a compression method   |
 | decompress | decompress(input, "zlib") | Decompress the input string or binary value with a compression method |
 
-Currently, only 'zlib' method is supported.
+Currently, 'zlib', 'gzip' and 'flate' method are supported.
 
 ## Analytic Functions
 

+ 1 - 1
docs/zh_CN/integrations/neuron/neuron_integration_tutorial.md

@@ -32,7 +32,7 @@ Neuron 与 eKuiper 的连接经历了几个阶段:
 
 开始动手操作之前,需要准备以下环境:
 
-- 云端的 MQTT broker,例如[快速开始 EMQX](https://www.emqx.io/docs/zh/v4.4/getting-started/getting-started.html#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)。假设云端 MQTT broker 地址为 `tcp://cloud.host:1883`, 以下教程将以此地址为例。
+- 云端的 MQTT broker,例如[快速开始 EMQX](https://neugates.io/docs/zh/latest/quick-start/southdevices-connect.html)。假设云端 MQTT broker 地址为 `tcp://cloud.host:1883`, 以下教程将以此地址为例。
 - 为了方便观察运行结果,我们需要安装一个 MQTT 客户端,例如 [MQTT X](https://mqttx.app/) 。
 
 ## 快速部署

+ 1 - 1
docs/zh_CN/sqls/built-in_functions.md

@@ -177,7 +177,7 @@ eKuiper 具有许多内置函数,可以对数据执行计算。
 | compress   | compress(input, "zlib")   | 压缩输入的字符串或二进制值。  |
 | decompress | decompress(input, "zlib") | 解压缩输入的字符串或二进制值。 |
 
-目前支持 'zlib' 压缩算法。
+目前支持 'zlib', 'gzip' 和 'flate' 压缩算法。
 
 ## 分析函数
 

+ 2 - 2
etc/functions/internal.json

@@ -2953,7 +2953,7 @@
 				"optional": false,
 				"control": "select",
 				"type": "string",
-				"values": ["zlib"],
+				"values": ["zlib","gzip","flate"],
 				"hint": {
 					"en_US": "The type of compression",
 					"zh_CN": "压缩方法"
@@ -3006,7 +3006,7 @@
 				"optional": false,
 				"control": "select",
 				"type": "string",
-				"values": ["zlib"],
+				"values": ["zlib","gzip","flate"],
 				"hint": {
 					"en_US": "The type of decompression",
 					"zh_CN": "解压缩方法"

+ 3 - 1
etc/mqtt_source.json

@@ -233,7 +233,9 @@
 			"control": "select",
 			"type": "string",
 			"values": [
-				"zlib"
+				"zlib",
+				"gzip",
+				"flate"
 			],
 			"hint": {
 				"en_US": "Decompress the MQTT payload with the specified compression method.",

+ 3 - 1
etc/sinks/mqtt.json

@@ -222,7 +222,9 @@
       "control": "select",
       "type": "string",
       "values": [
-        "zlib"
+        "zlib",
+        "gzip",
+        "flate"
       ],
       "hint": {
         "en_US": "Compress the payload with the specified compression method.",