chore: refine influxdb bridge/connector i18n

This commit is contained in:
JimMoen 2022-08-15 11:57:02 +08:00
parent 5f7dc431b4
commit b01ae8ece6
3 changed files with 28 additions and 41 deletions

View File

@ -24,13 +24,8 @@ emqx_resource_schema {
start_timeout { start_timeout {
desc { desc {
en: """ en: """If 'start_after_created' enabled, how long time do we wait for the resource get started, in milliseconds."""
If 'start_after_created' enabled, how long time do we wait for the zh: """如果选择了创建后立即启动资源,此选项用来设置等待资源启动的超时时间,单位毫秒。"""
resource get started, in milliseconds.
"""
zh: """
如果选择了创建后立即启动资源,此选项用来设置等待资源启动的超时时间,单位毫秒。
"""
} }
label { label {
en: """Start Timeout""" en: """Start Timeout"""
@ -40,12 +35,8 @@ resource get started, in milliseconds.
auto_restart_interval { auto_restart_interval {
desc { desc {
en: """ en: """The auto restart interval after the resource is disconnected, in milliseconds."""
The auto restart interval after the resource is disconnected, in milliseconds. zh: """资源断开以后,自动重连的时间间隔,单位毫秒。"""
"""
zh: """
资源断开以后,自动重连的时间间隔,单位毫秒。
"""
} }
label { label {
en: """Auto Restart Interval""" en: """Auto Restart Interval"""
@ -89,7 +80,7 @@ The auto restart interval after the resource is disconnected, in milliseconds.
resume_interval { resume_interval {
desc { desc {
en: """Resume time interval when resource down.""" en: """Resume time interval when resource down."""
zh: """资源不可用时的重试时间""" zh: """资源不可用时的重试时间"""
} }
label { label {
en: """Resume interval""" en: """Resume interval"""
@ -100,7 +91,7 @@ The auto restart interval after the resource is disconnected, in milliseconds.
async_inflight_window { async_inflight_window {
desc { desc {
en: """Async query inflight window.""" en: """Async query inflight window."""
zh: """异步请求飞行队列窗口大小""" zh: """异步请求飞行队列窗口大小"""
} }
label { label {
en: """Async inflight window""" en: """Async inflight window"""
@ -111,7 +102,7 @@ The auto restart interval after the resource is disconnected, in milliseconds.
batch_size { batch_size {
desc { desc {
en: """Maximum batch count.""" en: """Maximum batch count."""
zh: """批量请求大小""" zh: """批量请求大小"""
} }
label { label {
en: """Batch size""" en: """Batch size"""

View File

@ -1,15 +1,13 @@
emqx_ee_bridge_influxdb { emqx_ee_bridge_influxdb {
local_topic { local_topic {
desc { desc {
en: """ en: """The MQTT topic filter to be forwarded to the InfluxDB. All MQTT 'PUBLISH' messages with the topic
The MQTT topic filter to be forwarded to the InfluxDB. All MQTT 'PUBLISH' messages with the topic
matching the local_topic will be forwarded.</br> matching the local_topic will be forwarded.</br>
NOTE: if this bridge is used as the action of a rule (EMQX rule engine), and also local_topic is NOTE: if this bridge is used as the action of a rule (EMQX rule engine), and also local_topic is
configured, then both the data got from the rule and the MQTT messages that match local_topic configured, then both the data got from the rule and the MQTT messages that match local_topic
will be forwarded. will be forwarded.
""" """
zh: """ zh: """发送到 'local_topic' 的消息都会转发到 InfluxDB。 </br>
发送到 'local_topic' 的消息都会转发到 InfluxDB。 </br>
注意:如果这个 Bridge 被用作规则EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发到 InfluxDB。 注意:如果这个 Bridge 被用作规则EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发到 InfluxDB。
""" """
} }
@ -20,20 +18,18 @@ will be forwarded.
} }
write_syntax { write_syntax {
desc { desc {
en: """ en: """Conf of InfluxDB line protocol to write data points. It is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point, and placeholder supported.
Conf of InfluxDB line protocol to write data points. It is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point, and placeholder supported.
See also [InfluxDB 2.3 Line Protocol](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/) and See also [InfluxDB 2.3 Line Protocol](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/) and
[InfluxDB 1.8 Line Protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/) </br> [InfluxDB 1.8 Line Protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/) </br>
TLDR: TLDR:</br>
``` ```
<measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>] <measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>]
``` ```
""" """
zh: """ zh: """使用 InfluxDB API Line Protocol 写入 InfluxDB 的数据,支持占位符</br>
使用 InfluxDB API Line Protocol 写入 InfluxDB 的数据,支持占位符</br>
参考 [InfluxDB 2.3 Line Protocol](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/) 及 参考 [InfluxDB 2.3 Line Protocol](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/) 及
[InfluxDB 1.8 Line Protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/) </br> [InfluxDB 1.8 Line Protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/) </br>
TLDR: TLDR: </br>
``` ```
<measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>] <measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>]
``` ```
@ -46,8 +42,8 @@ TLDR:
} }
config_enable { config_enable {
desc { desc {
en: """Enable or disable this bridge""" en: """Enable or disable this bridge."""
zh: """启用/禁用桥接""" zh: """启用/禁用桥接"""
} }
label { label {
en: "Enable Or Disable Bridge" en: "Enable Or Disable Bridge"
@ -56,8 +52,8 @@ TLDR:
} }
config_direction { config_direction {
desc { desc {
en: """The direction of this bridge, MUST be 'egress'""" en: """The direction of this bridge, MUST be 'egress'."""
zh: """桥接的方向,必须是 egress""" zh: """桥接的方向,必须是 egress"""
} }
label { label {
en: "Bridge Direction" en: "Bridge Direction"
@ -68,7 +64,7 @@ TLDR:
desc_config { desc_config {
desc { desc {
en: """Configuration for an InfluxDB bridge.""" en: """Configuration for an InfluxDB bridge."""
zh: """InfluxDB 桥接配置""" zh: """InfluxDB 桥接配置"""
} }
label: { label: {
en: "InfluxDB Bridge Configuration" en: "InfluxDB Bridge Configuration"
@ -78,8 +74,8 @@ TLDR:
desc_type { desc_type {
desc { desc {
en: """The Bridge Type""" en: """The Bridge Type."""
zh: """Bridge 类型""" zh: """Bridge 类型"""
} }
label { label {
en: "Bridge Type" en: "Bridge Type"

View File

@ -42,8 +42,8 @@ emqx_ee_connector_influxdb {
} }
protocol { protocol {
desc { desc {
en: """InfluxDB's protocol. UDP or HTTP API or HTTP API V2""" en: """InfluxDB's protocol. UDP or HTTP API or HTTP API V2."""
zh: """InfluxDB 协议。UDP 或 HTTP API 或 HTTP API V2""" zh: """InfluxDB 协议。UDP 或 HTTP API 或 HTTP API V2"""
} }
label: { label: {
en: """Protocol""" en: """Protocol"""
@ -53,7 +53,7 @@ emqx_ee_connector_influxdb {
influxdb_udp { influxdb_udp {
desc { desc {
en: """InfluxDB's UDP protocol.""" en: """InfluxDB's UDP protocol."""
zh: """InfluxDB UDP 协议""" zh: """InfluxDB UDP 协议"""
} }
label: { label: {
en: """UDP Protocol""" en: """UDP Protocol"""
@ -63,7 +63,7 @@ emqx_ee_connector_influxdb {
influxdb_api_v1 { influxdb_api_v1 {
desc { desc {
en: """InfluxDB's protocol. Support InfluxDB v1.8 and before.""" en: """InfluxDB's protocol. Support InfluxDB v1.8 and before."""
zh: """InfluxDB HTTP API 协议。支持 Influxdb v1.8 以及之前的版本""" zh: """InfluxDB HTTP API 协议。支持 Influxdb v1.8 以及之前的版本"""
} }
label: { label: {
en: """HTTP API Protocol""" en: """HTTP API Protocol"""
@ -73,7 +73,7 @@ emqx_ee_connector_influxdb {
influxdb_api_v2 { influxdb_api_v2 {
desc { desc {
en: """InfluxDB's protocol. Support InfluxDB v2.0 and after.""" en: """InfluxDB's protocol. Support InfluxDB v2.0 and after."""
zh: """InfluxDB HTTP API V2 协议。支持 Influxdb v2.0 以及之后的版本""" zh: """InfluxDB HTTP API V2 协议。支持 Influxdb v2.0 以及之后的版本"""
} }
label: { label: {
en: """HTTP API V2 Protocol""" en: """HTTP API V2 Protocol"""
@ -113,7 +113,7 @@ emqx_ee_connector_influxdb {
bucket { bucket {
desc { desc {
en: "InfluxDB bucket name." en: "InfluxDB bucket name."
zh: "InfluxDB bucket 名称" zh: "InfluxDB bucket 名称"
} }
label: { label: {
en: "Bucket" en: "Bucket"
@ -152,8 +152,8 @@ emqx_ee_connector_influxdb {
} }
pool_size { pool_size {
desc { desc {
en: """InfluxDB Pool Size""" en: """InfluxDB Pool Size. Default value is CPU threads."""
zh: """InfluxDB 连接池大小""" zh: """InfluxDB 连接池大小,默认为 CPU 线程数。"""
} }
label { label {
en: """InfluxDB Pool Size""" en: """InfluxDB Pool Size"""