diff --git a/src/schemaText/schema-text-en.json b/src/schemaText/schema-text-en.json index 77a627687..0e16fe50a 100644 --- a/src/schemaText/schema-text-en.json +++ b/src/schemaText/schema-text-en.json @@ -1361,6 +1361,10 @@ "client_attrs_init_expression": { "label": "Attribute Expression", "desc": "A single-line expression that dynamically extracts attribute values from existing client information can use the following fields:

- `clientid`: client ID
- `username`: user name
- `cn`: CN field of TLS certificate
- `dn`: DN field of TLS certificate
- `user_property.*`: extracts the property value from the `User-Property` of the MQTT CONNECT packet, e.g. `user_property.foo`

You can use predefined string functions to dynamically process the information. For example, to extract the prefix of a dot-separated client ID: `nth(1, tokens(clientid, '.'))`; to extract a partial username: `substr(username, 0, 5)`. You can read more about variform expressions in EMQX docs.
" + }, + "mqtt_keepalive_check_interval": { + "label": "Keep Alive Check Interval", + "desc": "The frequency of checking for incoming MQTT packets determines how often the server will check for new MQTT packets.
If a certain amount of time passes without any packets being sent from the client, this time will be added up.
Once the accumulated time exceeds `keepalive-interval * keepalive-multiplier`, the connection will be terminated.
The default is set to 30 seconds, with a minimum value of 1 second and a maximum value of `keepalive-interval / 2`.
" } } } \ No newline at end of file diff --git a/src/schemaText/schema-text-zh.json b/src/schemaText/schema-text-zh.json index f01c28303..97fa192f2 100644 --- a/src/schemaText/schema-text-zh.json +++ b/src/schemaText/schema-text-zh.json @@ -1357,6 +1357,10 @@ "client_attrs_init_expression": { "label": "属性表达式", "desc": "一个行表达式,用于从客户端现有信息中动态提取属性值,可以使用以下字段:

- `clientid`:客户端 ID
- `username`:用户名
- `cn`:TLS 证书的 CN 字段
- `dn`:TLS 证书的 DN 字段
- `user_property.*`:从 MQTT CONNECT 数据包的 `User-Property` 中提取属性值,例如 `user_property.foo`

支持使用预定义的字符串函数对信息进行动态处理。例如,要提取由点分隔的客户端 ID 的前缀:`nth(1, tokens(clientid, '.'))`;要截取用户名部分信息:`substr(username, 0, 5)`。您可以在 EMQX 文档中了解有关 variform 表达式的更多信息。
" + }, + "mqtt_keepalive_check_interval": { + "label": "保活检查间隔", + "desc": "检查传入 MQTT 数据包的频率决定了服务器检查新 MQTT 数据包的频率。
如果客户端在一定时间内没有发送任何数据包,这段时间将会累积。
一旦累积时间超过 `keepalive-interval * keepalive-multiplier`,连接将会被终止。
默认值设置为 30 秒,最小值为 1 秒,最大值为 `keepalive-interval / 2`。" } } } \ No newline at end of file