emqx/apps/emqx_bridge/i18n/emqx_bridge_webhook_schema....

164 lines
5.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

emqx_bridge_webhook_schema {
config_enable {
desc {
en: """Enable or disable this bridge"""
zh: """启用/禁用 Bridge"""
}
label: {
en: "Enable Or Disable Bridge"
zh: "启用/禁用 Bridge"
}
}
config_url {
desc {
en: """
The URL of the HTTP Bridge.<br/>
Template with variables is allowed in the path, but variables cannot be used in the scheme, host,
or port part.<br/>
For example, <code> http://localhost:9901/${topic} </code> is allowed, but
<code> http://${host}:9901/message </code> or <code> http://localhost:${port}/message </code>
is not allowed.
"""
zh: """
HTTP Bridge 的 URL。<br/>
路径中允许使用带变量的模板,但是 host port 不允许使用变量模板。<br/>
例如,<code> http://localhost:9901/${topic} </code> 是允许的,
但是<code> http://${host}:9901/message </code>
或 <code> http://localhost:${port}/message </code>
不允许。
"""
}
label: {
en: "HTTP Bridge"
zh: "HTTP Bridge"
}
}
config_local_topic {
desc {
en: """
The MQTT topic filter to be forwarded to the HTTP server. All MQTT 'PUBLISH' messages with the topic
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
configured, then both the data got from the rule and the MQTT messages that match local_topic
will be forwarded.
"""
zh: """
发送到 'local_topic' 的消息都会转发到 HTTP 服务器。 <br/>
注意:如果这个 Bridge 被用作规则EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发到 HTTP 服务器。
"""
}
label: {
en: "Local Topic"
zh: "本地 Topic"
}
}
config_method {
desc {
en: """
The method of the HTTP request. All the available methods are: post, put, get, delete.<br/>
Template with variables is allowed.<br/>
"""
zh: """
HTTP 请求的方法。 所有可用的方法包括post、put、get、delete。<br/>
允许使用带有变量的模板。<br/>"""
}
label: {
en: "HTTP Method"
zh: "HTTP 请求方法"
}
}
config_headers {
desc {
en: """
The headers of the HTTP request.<br/>
Template with variables is allowed.
"""
zh: """
HTTP 请求的标头。<br/>
允许使用带有变量的模板。
"""
}
label: {
en: "HTTP Header"
zh: "HTTP 请求标头"
}
}
config_body {
desc {
en: """
The body of the HTTP request.<br/>
Template with variables is allowed.
"""
zh: """
HTTP 请求的正文。<br/>
允许使用带有变量的模板。"""
}
label: {
en: "HTTP Body"
zh: "HTTP 请求正文"
}
}
config_request_timeout {
desc {
en: """HTTP request timeout."""
zh: """HTTP 请求超时"""
}
label: {
en: "HTTP Request Timeout"
zh: "HTTP 请求超时"
}
}
config_max_retries {
desc {
en: """HTTP request max retry times if failed."""
zh: """HTTP 请求失败最大重试次数"""
}
label: {
en: "HTTP Request Max Retries"
zh: "HTTP 请求重试次数"
}
}
desc_type {
desc {
en: """The Bridge Type"""
zh: """Bridge 类型"""
}
label: {
en: "Bridge Type"
zh: "Bridge 类型"
}
}
desc_name {
desc {
en: """Bridge name, used as a human-readable description of the bridge."""
zh: """Bridge 名字Bridge 的可读描述"""
}
label: {
en: "Bridge Name"
zh: "Bridge 名字"
}
}
desc_config {
desc {
en: """Configuration for an HTTP bridge."""
zh: """HTTP Bridge 配置"""
}
label: {
en: "HTTP Bridge Configuration"
zh: "HTTP Bridge 配置"
}
}
}