mqtt_source.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "Jiyong Huang",
  6. "email": "huangjy@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/sources/mqtt.md",
  12. "zh_CN": "https://github.com/emqx/kuiper/blob/master/docs/zh_CN/rules/sources/mqtt.md"
  13. },
  14. "description": {
  15. "en_US": "Kuiper provides built-in support for MQTT source stream, which can subscribe the message from MQTT broker and feed into the Kuiper processing pipeline.",
  16. "zh_CN": "Kuiper 为 MQTT 源流提供了内置支持,流可以订阅来自 MQTT 代理的消息并输入Kuiper 处理管道。"
  17. }
  18. },
  19. "libs": [],
  20. "properties": {
  21. "default": [{
  22. "name": "qos",
  23. "default": 1,
  24. "optional": false,
  25. "control": "select",
  26. "type": "int",
  27. "values": [0, 1, 2],
  28. "hint": {
  29. "en_US": "The default subscription QoS level.",
  30. "zh_CN": "默认订阅 QoS 级别"
  31. },
  32. "label": {
  33. "en_US": "Qos level",
  34. "zh_CN": "QoS 级别"
  35. }
  36. }, {
  37. "name": "bufferLength",
  38. "default": 102400,
  39. "optional": false,
  40. "control": "text",
  41. "type": "int",
  42. "hint": {
  43. "en_US": "Specify the maximum number of messages to be buffered in the memory.",
  44. "zh_CN": "指定最大缓存消息数目。该参数主要用于防止内存溢出。"
  45. },
  46. "label": {
  47. "en_US": "BufferLength",
  48. "zh_CN": "缓存大小"
  49. }
  50. }, {
  51. "name": "sharedSubscription",
  52. "default": true,
  53. "optional": true,
  54. "control": "radio",
  55. "type": "bool",
  56. "hint": {
  57. "en_US": "Whether use the shared subscription mode or not. If using the shared subscription mode, then there are multiple Kuiper process can be load balanced.",
  58. "zh_CN": "是否使用共享订阅模式。 如果使用共享订阅模式,那么多个 Kuiper 进程可以进行负载平衡。"
  59. },
  60. "label": {
  61. "en_US": "SharedSubscription",
  62. "zh_CN": "使用共享订阅模式"
  63. }
  64. }, {
  65. "name": "servers",
  66. "default": ["tcp://127.0.0.1:1883"],
  67. "optional": true,
  68. "control": "list",
  69. "type": "list_string",
  70. "hint": {
  71. "en_US": "The server list for MQTT message broker. Currently, only ONE server can be specified.",
  72. "zh_CN": "MQTT 消息代理的服务器列表。 当前,只能指定一个服务器。"
  73. },
  74. "label": {
  75. "en_US": "Server list",
  76. "zh_CN": "服务器列表"
  77. }
  78. }, {
  79. "name": "concurrency",
  80. "default": 1,
  81. "optional": true,
  82. "control": "text",
  83. "type": "int",
  84. "hint": {
  85. "en_US": "How many instances will be started. By default, only an instance will be run. If more than one instance is specified, the topic must be a shared subscription topic.",
  86. "zh_CN": "设置运行的协程数,默认值为1。如果设置协程数大于1,必须使用共享订阅模式。"
  87. },
  88. "label": {
  89. "en_US": "Concurrency",
  90. "zh_CN": "协程数"
  91. }
  92. }, {
  93. "name": "username",
  94. "default": "",
  95. "optional": true,
  96. "control": "text",
  97. "type": "string",
  98. "hint": {
  99. "en_US": "The username for MQTT connection. The configuration will not be used if certificationPath or privateKeyPath is specified.",
  100. "zh_CN": "MQTT 连接用户名。如果指定了 certificationPath 或者 privateKeyPath,那么该项配置不会被使用。"
  101. },
  102. "label": {
  103. "en_US": "Username",
  104. "zh_CN": "用户名"
  105. }
  106. }, {
  107. "name": "password",
  108. "default": "",
  109. "optional": true,
  110. "control": "text",
  111. "type": "string",
  112. "hint": {
  113. "en_US": "The password for MQTT connection. The configuration will not be used if certificationPath or privateKeyPath is specified.",
  114. "zh_CN": "MQTT 连接密码。如果指定了 certificationPath 或者 privateKeyPath,那么该项配置不会被使用。"
  115. },
  116. "label": {
  117. "en_US": "Password",
  118. "zh_CN": "密码"
  119. }
  120. }, {
  121. "name": "certificationPath",
  122. "default": "",
  123. "optional": true,
  124. "control": "text",
  125. "type": "string",
  126. "hint": {
  127. "en_US": "The location of certification path. It can be an absolute path, or a relative path.",
  128. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 server 命令的路径。"
  129. },
  130. "label": {
  131. "en_US": "Certification path",
  132. "zh_CN": "证书路径"
  133. }
  134. }, {
  135. "name": "privateKeyPath",
  136. "default": "",
  137. "optional": true,
  138. "control": "text",
  139. "type": "string",
  140. "hint": {
  141. "en_US": "The location of private key path. It can be an absolute path, or a relative path. ",
  142. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径。"
  143. },
  144. "label": {
  145. "en_US": "Private key path",
  146. "zh_CN": "私钥路径"
  147. }
  148. }, {
  149. "name": "kubeedgeVersion",
  150. "default": "",
  151. "optional": true,
  152. "control": "text",
  153. "type": "string",
  154. "hint": {
  155. "en_US": "Kubeedge version number. Different version numbers correspond to different file contents.",
  156. "zh_CN": "Kubeedge 版本号,不同的版本号对应的文件内容不同"
  157. },
  158. "label": {
  159. "en_US": "Kubeedge version",
  160. "zh_CN": "Kubeedge 版本号"
  161. }
  162. }, {
  163. "name": "kubeedgeModelFile",
  164. "default": "",
  165. "optional": true,
  166. "control": "text",
  167. "type": "string",
  168. "hint": {
  169. "en_US": "The name of the kubeedge template file. The file is located in the specified etc/sources folder.",
  170. "zh_CN": "Kubeedge 模版文件名,文件指定放在 etc/sources 文件夹中"
  171. },
  172. "label": {
  173. "en_US": "File name",
  174. "zh_CN": "文件名"
  175. }
  176. }]
  177. }
  178. }