mqtt_source.json 5.4 KB

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