mqtt.json 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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://ekuiper.org/docs/en/latest/guide/sinks/builtin/mqtt.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/builtin/mqtt.html"
  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": "connectionSelector",
  22. "default": "",
  23. "optional": true,
  24. "control": "select",
  25. "type": "string",
  26. "values": [],
  27. "hint": {
  28. "en_US": "specify the source to reuse the connection defined in connection configuration.",
  29. "zh_CN": "复用 connection 中定义的连接"
  30. },
  31. "label": {
  32. "en_US": "Connection selector",
  33. "zh_CN": "复用连接信息"
  34. }
  35. },
  36. {
  37. "name": "server",
  38. "default": "tcp://127.0.0.1:1883",
  39. "optional": false,
  40. "control": "text",
  41. "connection_related": true,
  42. "type": "string",
  43. "hint": {
  44. "en_US": "The broker address of the MQTT server, such as tcp://127.0.0.1:1883.",
  45. "zh_CN": "MQTT 服务器地址,例如 tcp://127.0.0.1:1883"
  46. },
  47. "label": {
  48. "en_US": "MQTT broker address",
  49. "zh_CN": "MQTT 服务器地址"
  50. }
  51. },
  52. {
  53. "name": "topic",
  54. "optional": false,
  55. "control": "text",
  56. "default": "",
  57. "type": "string",
  58. "hint": {
  59. "en_US": "The MQTT topic, such as analysis/result",
  60. "zh_CN": "MQTT 主题,例如 analysis/result"
  61. },
  62. "label": {
  63. "en_US": "MQTT topic",
  64. "zh_CN": "MQTT 主题"
  65. }
  66. },
  67. {
  68. "name": "clientId",
  69. "optional": true,
  70. "control": "text",
  71. "connection_related": true,
  72. "default": "",
  73. "type": "string",
  74. "hint": {
  75. "en_US": "The client id for MQTT connection. If not specified, an uuid will be used",
  76. "zh_CN": "MQTT 连接的客户端 ID。 如果未指定,将使用一个 uuid"
  77. },
  78. "label": {
  79. "en_US": "MQTT ClientID",
  80. "zh_CN": "MQTT 客户端标识符(ClinetID)"
  81. }
  82. },
  83. {
  84. "name": "protocolVersion",
  85. "default": "3.1.1",
  86. "optional": true,
  87. "control": "select",
  88. "values": [
  89. "3.1",
  90. "3.1.1"
  91. ],
  92. "type": "string",
  93. "connection_related": true,
  94. "hint": {
  95. "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.",
  96. "zh_CN": "MQTT 协议版本。3.1 (也被称为 MQTT 3) 或者 3.1.1 (也被称为 MQTT 4)。 如果未指定,缺省值为 3.1。"
  97. },
  98. "label": {
  99. "en_US": "MQTT protocol version",
  100. "zh_CN": "MQTT 协议版本"
  101. }
  102. },
  103. {
  104. "name": "qos",
  105. "default": 0,
  106. "optional": true,
  107. "control": "select",
  108. "values": [
  109. 0,
  110. 1,
  111. 2
  112. ],
  113. "type": "list_int",
  114. "hint": {
  115. "en_US": "The QoS for message delivery.",
  116. "zh_CN": "消息转发的服务质量"
  117. },
  118. "label": {
  119. "en_US": "QoS",
  120. "zh_CN": "QoS"
  121. }
  122. },
  123. {
  124. "name": "username",
  125. "default": "",
  126. "optional": true,
  127. "control": "text",
  128. "type": "string",
  129. "connection_related": true,
  130. "hint": {
  131. "en_US": "The username for the connection.",
  132. "zh_CN": "连接用户名"
  133. },
  134. "label": {
  135. "en_US": "Username",
  136. "zh_CN": "用户名"
  137. }
  138. },
  139. {
  140. "name": "password",
  141. "default": "",
  142. "optional": true,
  143. "control": "text",
  144. "type": "string",
  145. "connection_related": true,
  146. "hint": {
  147. "en_US": "The password for the connection.",
  148. "zh_CN": "连接密码。"
  149. },
  150. "label": {
  151. "en_US": "Password",
  152. "zh_CN": "密码"
  153. }
  154. },
  155. {
  156. "name": "certificationPath",
  157. "default": "",
  158. "optional": true,
  159. "control": "text",
  160. "type": "string",
  161. "connection_related": true,
  162. "hint": {
  163. "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.",
  164. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 kuiperd 命令的路径。比如,如果你在 /var/kuiper 中运行 bin/kuiperd ,那么父目录为 /var/kuiper; 如果运行从 /var/kuiper/bin 中运行./kuiperd,那么父目录为 /var/kuiper/bin"
  165. },
  166. "label": {
  167. "en_US": "Certification path",
  168. "zh_CN": "证书路径"
  169. }
  170. },
  171. {
  172. "name": "privateKeyPath",
  173. "default": "",
  174. "optional": true,
  175. "control": "text",
  176. "type": "string",
  177. "connection_related": true,
  178. "hint": {
  179. "en_US": "The private key path. It can be either absolute path, or relative path, which is similar to use of certificationPath.",
  180. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径,相对路径的用法与 certificationPath 类似"
  181. },
  182. "label": {
  183. "en_US": "Private key path",
  184. "zh_CN": "私钥路径"
  185. }
  186. },
  187. {
  188. "name": "rootCaPath",
  189. "default": "",
  190. "optional": true,
  191. "control": "text",
  192. "type": "string",
  193. "connection_related": true,
  194. "hint": {
  195. "en_US": "The location of root ca path. It can be an absolute path, or a relative path. ",
  196. "zh_CN": "根证书路径,用以验证服务器证书。可以为绝对路径,也可以为相对路径。"
  197. },
  198. "label": {
  199. "en_US": "Root Ca path",
  200. "zh_CN": "根证书路径"
  201. }
  202. },
  203. {
  204. "name": "insecureSkipVerify",
  205. "default": false,
  206. "optional": true,
  207. "control": "radio",
  208. "type": "bool",
  209. "connection_related": true,
  210. "hint": {
  211. "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.",
  212. "zh_CN": "如果 InsecureSkipVerify 设置为 true, TLS接受服务器提供的任何证书以及该证书中的任何主机名。 在这种模式下,TLS容易受到中间人攻击。默认值为false。配置项只能用于TLS连接。"
  213. },
  214. "label": {
  215. "en_US": "Skip Certification verification",
  216. "zh_CN": "跳过证书验证"
  217. }
  218. },
  219. {
  220. "name": "compression",
  221. "optional": true,
  222. "control": "select",
  223. "type": "string",
  224. "values": [
  225. "zlib",
  226. "gzip",
  227. "flate",
  228. "zstd"
  229. ],
  230. "hint": {
  231. "en_US": "Compress the payload with the specified compression method.",
  232. "zh_CN": "使用指定的压缩方法压缩 Payload。"
  233. },
  234. "label": {
  235. "en_US": "Compression",
  236. "zh_CN": "压缩"
  237. }
  238. }
  239. ],
  240. "node": {
  241. "category": "sink",
  242. "icon": "iconPath",
  243. "label": {
  244. "en": "MQTT",
  245. "zh": "MQTT"
  246. }
  247. }
  248. }