mqtt.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://github.com/emqx/kuiper/blob/master/docs/en_US/rules/sinks/mqtt.md",
  12. "zh_CN": "https://github.com/emqx/kuiper/blob/master/docs/zh_CN/rules/sinks/mqtt.md"
  13. },
  14. "description": {
  15. "en_US": "The action is used for publish output message into an MQTT server.",
  16. "zh_CN": "该操作用于将输出消息发布到 MQTT 服务器中"
  17. }
  18. },
  19. "properties": [
  20. {
  21. "name": "server",
  22. "default": "tcp://127.0.0.1:1883",
  23. "optional": false,
  24. "control": "text",
  25. "type": "string",
  26. "hint": {
  27. "en_US": "The broker address of the MQTT server, such as tcp://127.0.0.1:1883.",
  28. "zh_CN": "MQTT 服务器地址,例如 tcp://127.0.0.1:1883"
  29. },
  30. "label": {
  31. "en_US": "MQTT broker address",
  32. "zh_CN": "MQTT 服务器地址"
  33. }
  34. },
  35. {
  36. "name": "topic",
  37. "optional": false,
  38. "control": "text",
  39. "default": "",
  40. "type": "string",
  41. "hint": {
  42. "en_US": "The MQTT topic, such as analysis/result",
  43. "zh_CN": "MQTT 主题,例如 analysis/result"
  44. },
  45. "label": {
  46. "en_US": "MQTT topic",
  47. "zh_CN": "MQTT 主题"
  48. }
  49. },
  50. {
  51. "name": "clientId",
  52. "optional": true,
  53. "control": "text",
  54. "default": "",
  55. "type": "string",
  56. "hint": {
  57. "en_US": "The client id for MQTT connection. If not specified, an uuid will be used",
  58. "zh_CN": "MQTT 连接的客户端 ID。 如果未指定,将使用一个 uuid"
  59. },
  60. "label": {
  61. "en_US": "MQTT ClinetID",
  62. "zh_CN": "MQTT 客户端标识符(ClinetID)"
  63. }
  64. },
  65. {
  66. "name": "protocolVersion",
  67. "default": "3.1",
  68. "optional": true,
  69. "control": "select",
  70. "values": [
  71. "3.1",
  72. "3.1.1"
  73. ],
  74. "type": "string",
  75. "hint": {
  76. "en_US": "MQTT protocol version. 3.1 (also refer as MQTT 3) or 3.1.1 (also refer as MQTT 4). If not specified, the default value is 3.1.",
  77. "zh_CN": "MQTT 协议版本。3.1 (也被称为 MQTT 3) 或者 3.1.1 (也被称为 MQTT 4)。 如果未指定,缺省值为 3.1。"
  78. },
  79. "label": {
  80. "en_US": "MQTT protocol version",
  81. "zh_CN": "MQTT 协议版本"
  82. }
  83. },
  84. {
  85. "name": "qos",
  86. "default": 0,
  87. "optional": true,
  88. "control": "select",
  89. "values": [
  90. 0,
  91. 1,
  92. 2
  93. ],
  94. "type": "list_int",
  95. "hint": {
  96. "en_US": "The QoS for message delivery.",
  97. "zh_CN": "消息转发的服务质量"
  98. },
  99. "label": {
  100. "en_US": "QoS",
  101. "zh_CN": "QoS"
  102. }
  103. },
  104. {
  105. "name": "username",
  106. "default": "",
  107. "optional": true,
  108. "control": "text",
  109. "type": "string",
  110. "hint": {
  111. "en_US": "The username for the connection.",
  112. "zh_CN": "连接用户名"
  113. },
  114. "label": {
  115. "en_US": "Username",
  116. "zh_CN": "用户名"
  117. }
  118. },
  119. {
  120. "name": "password",
  121. "default": "",
  122. "optional": true,
  123. "control": "text",
  124. "type": "string",
  125. "hint": {
  126. "en_US": "The password for the connection.",
  127. "zh_CN": "连接密码。"
  128. },
  129. "label": {
  130. "en_US": "Password",
  131. "zh_CN": "密码"
  132. }
  133. },
  134. {
  135. "name": "certificationPath",
  136. "default": "",
  137. "optional": true,
  138. "control": "text",
  139. "type": "string",
  140. "hint": {
  141. "en_US": "The certification path. It can be an absolute path, or a relative path. If it is an relative path, then the base path is where you excuting the kuiperd command. For example, if you run bin/kuiperd from /var/kuiper, then the base path is /var/kuiper; If you run ./kuiperd from /var/kuiper/bin, then the base path is /var/kuiper/bin.",
  142. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 kuiperd 命令的路径。比如,如果你在 /var/kuiper 中运行 bin/kuiperd ,那么父目录为 /var/kuiper; 如果运行从 /var/kuiper/bin 中运行./kuiperd,那么父目录为 /var/kuiper/bin"
  143. },
  144. "label": {
  145. "en_US": "Certification path",
  146. "zh_CN": "证书路径"
  147. }
  148. },
  149. {
  150. "name": "privateKeyPath",
  151. "default": "",
  152. "optional": true,
  153. "control": "text",
  154. "type": "string",
  155. "hint": {
  156. "en_US": "The private key path. It can be either absolute path, or relative path, which is similar to use of certificationPath.",
  157. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径,相对路径的用法与 certificationPath 类似"
  158. },
  159. "label": {
  160. "en_US": "Certification path",
  161. "zh_CN": "证书路径"
  162. }
  163. },
  164. {
  165. "name": "insecureSkipVerify",
  166. "default": true,
  167. "optional": true,
  168. "control": "radio",
  169. "type": "bool",
  170. "hint": {
  171. "en_US": "If InsecureSkipVerify is true, TLS accepts any certificate presented by the server and any host name in that certificate. In this mode, TLS is susceptible to man-in-the-middle attacks. The default value is false. The configuration item can only be used with TLS connections.",
  172. "zh_CN": "如果 InsecureSkipVerify 设置为 true, TLS接受服务器提供的任何证书以及该证书中的任何主机名。 在这种模式下,TLS容易受到中间人攻击。默认值为false。配置项只能用于TLS连接。"
  173. },
  174. "label": {
  175. "en_US": "Insecure skip verify",
  176. "zh_CN": "非安全跳过验证"
  177. }
  178. }
  179. ]
  180. }