mqtt_source.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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/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": true,
  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": "servers",
  38. "default": ["tcp://127.0.0.1:1883"],
  39. "optional": true,
  40. "control": "list",
  41. "type": "list_string",
  42. "hint": {
  43. "en_US": "The server list for MQTT message broker. Currently, only ONE server can be specified.",
  44. "zh_CN": "MQTT 消息代理的服务器列表。 当前,只能指定一个服务器。"
  45. },
  46. "label": {
  47. "en_US": "Server list",
  48. "zh_CN": "服务器列表"
  49. }
  50. }, {
  51. "name": "username",
  52. "default": "",
  53. "optional": true,
  54. "control": "text",
  55. "type": "string",
  56. "hint": {
  57. "en_US": "The username for MQTT connection. The configuration will not be used if certificationPath or privateKeyPath is specified.",
  58. "zh_CN": "MQTT 连接用户名。如果指定了 certificationPath 或者 privateKeyPath,那么该项配置不会被使用。"
  59. },
  60. "label": {
  61. "en_US": "Username",
  62. "zh_CN": "用户名"
  63. }
  64. }, {
  65. "name": "password",
  66. "default": "",
  67. "optional": true,
  68. "control": "text",
  69. "type": "string",
  70. "hint": {
  71. "en_US": "The password for MQTT connection. The configuration will not be used if certificationPath or privateKeyPath is specified.",
  72. "zh_CN": "MQTT 连接密码。如果指定了 certificationPath 或者 privateKeyPath,那么该项配置不会被使用。"
  73. },
  74. "label": {
  75. "en_US": "Password",
  76. "zh_CN": "密码"
  77. }
  78. }, {
  79. "name": "certificationPath",
  80. "default": "",
  81. "optional": true,
  82. "control": "text",
  83. "type": "string",
  84. "hint": {
  85. "en_US": "The location of certification path. It can be an absolute path, or a relative path.",
  86. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 server 命令的路径。"
  87. },
  88. "label": {
  89. "en_US": "Certification path",
  90. "zh_CN": "证书路径"
  91. }
  92. }, {
  93. "name": "privateKeyPath",
  94. "default": "",
  95. "optional": true,
  96. "control": "text",
  97. "type": "string",
  98. "hint": {
  99. "en_US": "The location of private key path. It can be an absolute path, or a relative path. ",
  100. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径。"
  101. },
  102. "label": {
  103. "en_US": "Private key path",
  104. "zh_CN": "私钥路径"
  105. }
  106. }, {
  107. "name": "kubeedgeVersion",
  108. "default": "",
  109. "optional": true,
  110. "control": "text",
  111. "type": "string",
  112. "hint": {
  113. "en_US": "Kubeedge version number. Different version numbers correspond to different file contents.",
  114. "zh_CN": "Kubeedge 版本号,不同的版本号对应的文件内容不同"
  115. },
  116. "label": {
  117. "en_US": "Kubeedge version",
  118. "zh_CN": "Kubeedge 版本号"
  119. }
  120. }, {
  121. "name": "kubeedgeModelFile",
  122. "default": "",
  123. "optional": true,
  124. "control": "text",
  125. "type": "string",
  126. "hint": {
  127. "en_US": "The name of KubeEdge template file. The file is located in the specified etc/sources folder.",
  128. "zh_CN": "KubeEdge 模版文件名,文件指定放在 etc/sources 文件夹中"
  129. },
  130. "label": {
  131. "en_US": "KubeEdge model file",
  132. "zh_CN": "KubeEdge 模型文件"
  133. }
  134. }]
  135. }
  136. }