edgex.json 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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/edgex.md",
  12. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sources/edgex.md"
  13. },
  14. "description": {
  15. "en_US": "eKuiper provides built-in support for EdgeX source stream, which can subscribe the message from EdgeX message bus and feed into the eKuiper streaming process pipeline.",
  16. "zh_CN": "eKuiper 提供了内置的 EdgeX 源支持,它可以被用来订阅来自于EdgeX 消息总线的数据,并且将数据放入 eKuiper 数据处理流水线中。"
  17. }
  18. },
  19. "properties": {
  20. "default": [
  21. {
  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. {
  38. "name": "protocol",
  39. "default": "redis",
  40. "optional": true,
  41. "connection_related": true,
  42. "control": "select",
  43. "values": [
  44. "tcp",
  45. "redis"
  46. ],
  47. "type": "string",
  48. "hint": {
  49. "en_US": "The protocol. If it's not specified, then use default value 'tcp'.",
  50. "zh_CN": "协议,如未指定,使用缺省值 tcp。"
  51. },
  52. "label": {
  53. "en_US": "Protocol",
  54. "zh_CN": "协议"
  55. }
  56. },
  57. {
  58. "name": "server",
  59. "default": "localhost",
  60. "optional": true,
  61. "connection_related": true,
  62. "control": "text",
  63. "type": "string",
  64. "hint": {
  65. "en_US": "The server address of EdgeX message bus, default value is localhost.",
  66. "zh_CN": "EdgeX 消息总线的地址。"
  67. },
  68. "label": {
  69. "en_US": "Server address",
  70. "zh_CN": "地址"
  71. }
  72. },
  73. {
  74. "name": "port",
  75. "default": 5573,
  76. "optional": false,
  77. "control": "text",
  78. "connection_related": true,
  79. "type": "int",
  80. "hint": {
  81. "en_US": "The port of EdgeX message bus, default value is 5573.",
  82. "zh_CN": "EdgeX 消息总线的端口"
  83. },
  84. "label": {
  85. "en_US": "Port",
  86. "zh_CN": "端口"
  87. }
  88. },
  89. {
  90. "name": "topic",
  91. "default": "events",
  92. "optional": false,
  93. "control": "text",
  94. "type": "string",
  95. "hint": {
  96. "en_US": "The topic name of EdgeX message bus, default value is events.",
  97. "zh_CN": "EdgeX 消息总线上监听的主题名称"
  98. },
  99. "label": {
  100. "en_US": "Topic",
  101. "zh_CN": "主题"
  102. }
  103. },
  104. {
  105. "name": "type",
  106. "default": "redis",
  107. "optional": true,
  108. "control": "select",
  109. "connection_related": true,
  110. "values": [
  111. "mqtt",
  112. "zero",
  113. "redis"
  114. ],
  115. "type": "list_string",
  116. "hint": {
  117. "en_US": "The EdgeX message bus type, currently two types of message buses are supported. If specified other values, then will use the default redis value.",
  118. "zh_CN": "EdgeX 消息总线类型,目前支持两种消息总线。如果指定了错误的消息总线类型,那么会使用缺省 redis 类型。"
  119. },
  120. "label": {
  121. "en_US": "Type",
  122. "zh_CN": "类型"
  123. }
  124. },
  125. {
  126. "name": "optional",
  127. "default": [{
  128. "name": "ClientId",
  129. "default": "",
  130. "optional": true,
  131. "control": "text",
  132. "type": "string",
  133. "hint": {
  134. "en_US": "MQTT clientID",
  135. "zh_CN": "MQTT 客户端 ID"
  136. },
  137. "label": {
  138. "en_US": "MQTT clientID",
  139. "zh_CN": "MQTT 客户端 ID"
  140. }
  141. },
  142. {
  143. "name": "Username",
  144. "default": "",
  145. "optional": true,
  146. "control": "text",
  147. "type": "string",
  148. "hint": {
  149. "en_US": "MQTT username",
  150. "zh_CN": "MQTT 用户名"
  151. },
  152. "label": {
  153. "en_US": "MQTT username",
  154. "zh_CN": "MQTT 用户名"
  155. }
  156. },
  157. {
  158. "name": "Password",
  159. "default": "",
  160. "optional": true,
  161. "control": "text",
  162. "type": "string",
  163. "hint": {
  164. "en_US": "MQTT password",
  165. "zh_CN": "MQTT 密码"
  166. },
  167. "label": {
  168. "en_US": "MQTT password",
  169. "zh_CN": "MQTT 密码"
  170. }
  171. },
  172. {
  173. "name": "Qos",
  174. "default": "",
  175. "optional": true,
  176. "control": "select",
  177. "type": "string",
  178. "values": [0, 1, 2],
  179. "hint": {
  180. "en_US": "MQTT QoS",
  181. "zh_CN": "MQTT 服务质量"
  182. },
  183. "label": {
  184. "en_US": "MQTT QoS",
  185. "zh_CN": "MQTT 服务质量"
  186. }
  187. },
  188. {
  189. "name": "KeepAlive",
  190. "default": "",
  191. "optional": true,
  192. "control": "text",
  193. "type": "string",
  194. "hint": {
  195. "en_US": "MQTT keepalive",
  196. "zh_CN": "MQTT keepalive"
  197. },
  198. "label": {
  199. "en_US": "MQTT keepalive",
  200. "zh_CN": "MQTT keepalive"
  201. }
  202. },
  203. {
  204. "name": "Retained",
  205. "default": "",
  206. "optional": true,
  207. "control": "text",
  208. "type": "string",
  209. "hint": {
  210. "en_US": "MQTT retained",
  211. "zh_CN": "MQTT retained"
  212. },
  213. "label": {
  214. "en_US": "MQTT retained",
  215. "zh_CN": "MQTT retained"
  216. }
  217. },
  218. {
  219. "name": "ConnectionPayload",
  220. "default": "",
  221. "optional": true,
  222. "control": "text",
  223. "type": "string",
  224. "hint": {
  225. "en_US": "MQTT connection payload",
  226. "zh_CN": "MQTT connection payload"
  227. },
  228. "label": {
  229. "en_US": "MQTT connection payload",
  230. "zh_CN": "MQTT connection payload"
  231. }
  232. },
  233. {
  234. "name": "CertFile",
  235. "default": "",
  236. "optional": true,
  237. "control": "text",
  238. "type": "string",
  239. "hint": {
  240. "en_US": "MQTT cert file",
  241. "zh_CN": "MQTT cert file"
  242. },
  243. "label": {
  244. "en_US": "MQTT cert file",
  245. "zh_CN": "MQTT cert file"
  246. }
  247. },
  248. {
  249. "name": "KeyFile",
  250. "default": "",
  251. "optional": true,
  252. "control": "text",
  253. "type": "string",
  254. "hint": {
  255. "en_US": "MQTT key file",
  256. "zh_CN": "MQTT key file"
  257. },
  258. "label": {
  259. "en_US": "MQTT key file",
  260. "zh_CN": "MQTT key file"
  261. }
  262. },
  263. {
  264. "name": "CertPEMBlock",
  265. "default": "",
  266. "optional": true,
  267. "control": "text",
  268. "type": "string",
  269. "hint": {
  270. "en_US": "MQTT cert PEM block",
  271. "zh_CN": "MQTT cert PEM block"
  272. },
  273. "label": {
  274. "en_US": "MQTT cert PEM block",
  275. "zh_CN": "MQTT cert PEM block"
  276. }
  277. },
  278. {
  279. "name": "KeyPEMBlock",
  280. "default": "",
  281. "optional": true,
  282. "control": "text",
  283. "type": "string",
  284. "hint": {
  285. "en_US": "MQTT key PEM block",
  286. "zh_CN": "MQTT key PEM block"
  287. },
  288. "label": {
  289. "en_US": "MQTT key PEM block",
  290. "zh_CN": "MQTT key PEM block"
  291. }
  292. },
  293. {
  294. "name": "SkipCertVerify",
  295. "default": "",
  296. "optional": true,
  297. "control": "text",
  298. "type": "string",
  299. "hint": {
  300. "en_US": "MQTT skip cert verify",
  301. "zh_CN": "MQTT skip cert verify"
  302. },
  303. "label": {
  304. "en_US": "MQTT skip cert verify",
  305. "zh_CN": "MQTT skip cert verify"
  306. }
  307. }
  308. ],
  309. "optional": true,
  310. "control": "list",
  311. "connection_related": true,
  312. "type": "list_object",
  313. "hint": {
  314. "en_US": "If MQTT message bus is used, some other optional configurations can be specified. Please notice that all of values in optional are string type, so values for these configurations should be string - such as KeepAlive: \"5000\".",
  315. "zh_CN": "如果使用了 MQTT 消息总线,还可以指定别的一些可选配置项。请注意,所有在可选的配置项里指定的值都必须为**字符类型**,因此这里出现的所有的配置应该是字符类型的 - 例如 KeepAlive: \"5000\"。"
  316. },
  317. "label": {
  318. "en_US": "Optional",
  319. "zh_CN": "选项"
  320. }
  321. }
  322. ]
  323. }
  324. }