mqtt_source.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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/lf-edge/ekuiper/blob/master/docs/en_US/rules/sources/mqtt.md",
  12. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sources/mqtt.md"
  13. },
  14. "description": {
  15. "en_US": "eKuiper provides built-in support for MQTT source stream, which can subscribe the message from MQTT broker and feed into the eKuiper processing pipeline.",
  16. "zh_CN": "eKuiper 为 MQTT 源流提供了内置支持,流可以订阅来自 MQTT 代理的消息并输入 eKuiper 处理管道。"
  17. }
  18. },
  19. "libs": [],
  20. "properties": {
  21. "default": [{
  22. "name": "connectionSelector",
  23. "default": "",
  24. "optional": true,
  25. "control": "select",
  26. "type": "string",
  27. "values": [],
  28. "hint": {
  29. "en_US": "specify the source to reuse the connection defined in connection configuration.",
  30. "zh_CN": "此数据源复用 connection 中定义的连接"
  31. },
  32. "label": {
  33. "en_US": "Connection selector",
  34. "zh_CN": "复用连接信息"
  35. }
  36. }, {
  37. "name": "server",
  38. "default": "tcp://127.0.0.1:1883",
  39. "optional": true,
  40. "connection_related": true,
  41. "control": "text",
  42. "type": "string",
  43. "hint": {
  44. "en_US": "The server for MQTT message broker.",
  45. "zh_CN": "MQTT 消息代理的服务器。"
  46. },
  47. "label": {
  48. "en_US": "Server Address",
  49. "zh_CN": "服务器地址"
  50. }
  51. }, {
  52. "name": "username",
  53. "default": "",
  54. "optional": true,
  55. "connection_related": true,
  56. "control": "text",
  57. "type": "string",
  58. "hint": {
  59. "en_US": "The username for MQTT connection.",
  60. "zh_CN": "MQTT 连接用户名。"
  61. },
  62. "label": {
  63. "en_US": "Username",
  64. "zh_CN": "用户名"
  65. }
  66. }, {
  67. "name": "password",
  68. "default": "",
  69. "optional": true,
  70. "connection_related": true,
  71. "control": "text",
  72. "type": "string",
  73. "hint": {
  74. "en_US": "The password for MQTT connection.",
  75. "zh_CN": "MQTT 连接密码。"
  76. },
  77. "label": {
  78. "en_US": "Password",
  79. "zh_CN": "密码"
  80. }
  81. }, {
  82. "name": "protocolVersion",
  83. "default": "3.1",
  84. "optional": true,
  85. "connection_related": true,
  86. "control": "text",
  87. "type": "string",
  88. "hint": {
  89. "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.",
  90. "zh_CN": "MQTT 协议版本。3.1 (也被称为 MQTT 3) 或者 3.1.1 (也被称为 MQTT 4)。 如果未指定,缺省值为 3.1。 "
  91. },
  92. "label": {
  93. "en_US": "protocolVersion",
  94. "zh_CN": "MQTT 协议版本"
  95. }
  96. }, {
  97. "name": "clientid",
  98. "default": "",
  99. "optional": true,
  100. "connection_related": true,
  101. "control": "text",
  102. "type": "string",
  103. "hint": {
  104. "en_US": "The client id for MQTT connection. If not specified, an uuid will be used.",
  105. "zh_CN": "MQTT 连接的客户端 ID。 如果未指定,将使用一个 uuid。"
  106. },
  107. "label": {
  108. "en_US": "clientid",
  109. "zh_CN": "客户端 ID"
  110. }
  111. }, {
  112. "name": "qos",
  113. "default": 1,
  114. "optional": true,
  115. "control": "select",
  116. "type": "int",
  117. "values": [0, 1, 2],
  118. "hint": {
  119. "en_US": "The default subscription QoS level.",
  120. "zh_CN": "默认订阅 QoS 级别"
  121. },
  122. "label": {
  123. "en_US": "Qos level",
  124. "zh_CN": "QoS 级别"
  125. }
  126. }, {
  127. "name": "certificationPath",
  128. "default": "",
  129. "optional": true,
  130. "connection_related": true,
  131. "control": "text",
  132. "type": "string",
  133. "hint": {
  134. "en_US": "The location of certification path. It can be an absolute path, or a relative path.",
  135. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 server 命令的路径。"
  136. },
  137. "label": {
  138. "en_US": "Certification path",
  139. "zh_CN": "证书路径"
  140. }
  141. }, {
  142. "name": "privateKeyPath",
  143. "default": "",
  144. "optional": true,
  145. "connection_related": true,
  146. "control": "text",
  147. "type": "string",
  148. "hint": {
  149. "en_US": "The location of private key path. It can be an absolute path, or a relative path. ",
  150. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径。"
  151. },
  152. "label": {
  153. "en_US": "Private key path",
  154. "zh_CN": "私钥路径"
  155. }
  156. }, {
  157. "name": "rootCaPath",
  158. "default": "",
  159. "optional": true,
  160. "connection_related": true,
  161. "control": "text",
  162. "type": "string",
  163. "hint": {
  164. "en_US": "The location of root ca path. It can be an absolute path, or a relative path. ",
  165. "zh_CN": "根证书路径,用以验证服务器证书。可以为绝对路径,也可以为相对路径。"
  166. },
  167. "label": {
  168. "en_US": "Root CA path",
  169. "zh_CN": "根证书路径"
  170. }
  171. }, {
  172. "name": "insecureSkipVerify",
  173. "default": false,
  174. "optional": true,
  175. "connection_related": true,
  176. "control": "radio",
  177. "type": "bool",
  178. "hint": {
  179. "en_US": "Control if to skip the certification verification. If it is set to true, then skip certification verification; Otherwise, verify the certification.",
  180. "zh_CN": "控制是否跳过证书认证。如果被设置为 true,那么跳过证书认证;否则进行证书验证。"
  181. },
  182. "label": {
  183. "en_US": "Skip Certification verification",
  184. "zh_CN": "跳过证书验证"
  185. }
  186. }, {
  187. "name": "kubeedgeVersion",
  188. "default": "",
  189. "optional": true,
  190. "control": "text",
  191. "type": "string",
  192. "hint": {
  193. "en_US": "Kubeedge version number. Different version numbers correspond to different file contents.",
  194. "zh_CN": "Kubeedge 版本号,不同的版本号对应的文件内容不同"
  195. },
  196. "label": {
  197. "en_US": "Kubeedge version",
  198. "zh_CN": "Kubeedge 版本号"
  199. }
  200. }, {
  201. "name": "kubeedgeModelFile",
  202. "default": "",
  203. "optional": true,
  204. "control": "text",
  205. "type": "string",
  206. "hint": {
  207. "en_US": "The name of KubeEdge template file. The file is located in the specified etc/sources folder.",
  208. "zh_CN": "KubeEdge 模版文件名,文件指定放在 etc/sources 文件夹中"
  209. },
  210. "label": {
  211. "en_US": "KubeEdge model file",
  212. "zh_CN": "KubeEdge 模型文件"
  213. }
  214. }]
  215. }
  216. }