tdengine.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. {
  2. "about": {
  3. "trial": true,
  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/sinks/plugin/tdengine.md",
  12. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sinks/plugin/tdengine.md"
  13. },
  14. "description": {
  15. "en_US": "This a sink plugin for TDengine, it can be used for saving the analysis data into TDengine.",
  16. "zh_CN": "本插件为 TDengine 的持久化插件,可以用于将分析数据存入 TDengine 中"
  17. }
  18. },
  19. "libs": [
  20. ],
  21. "properties": [
  22. {
  23. "name": "host",
  24. "default": "127.0.0.1",
  25. "optional": false,
  26. "control": "text",
  27. "type": "string",
  28. "hint": {
  29. "en_US": "Address of Taosdb, must be a host",
  30. "zh_CN": "Taosdb 地址,必须为域名"
  31. },
  32. "label": {
  33. "en_US": "Database address",
  34. "zh_CN": "数据库地址"
  35. }
  36. },
  37. {
  38. "name": "port",
  39. "default": 6030,
  40. "optional": false,
  41. "control": "text",
  42. "type": "int",
  43. "hint": {
  44. "en_US": "Database port",
  45. "zh_CN": "数据库端口号"
  46. },
  47. "label": {
  48. "en_US": "Port",
  49. "zh_CN": "端口号"
  50. }
  51. },
  52. {
  53. "name": "user",
  54. "default": "root",
  55. "optional": false,
  56. "control": "text",
  57. "type": "string",
  58. "hint": {
  59. "en_US": "Username",
  60. "zh_CN": "用户名"
  61. },
  62. "label": {
  63. "en_US": "Username",
  64. "zh_CN": "用户名"
  65. }
  66. },
  67. {
  68. "name": "password",
  69. "default": "taosdata",
  70. "optional": false,
  71. "control": "text",
  72. "type": "string",
  73. "hint": {
  74. "en_US": "Password of Taosdb",
  75. "zh_CN": "数据库密码"
  76. },
  77. "label": {
  78. "en_US": "Password",
  79. "zh_CN": "密码"
  80. }
  81. },
  82. {
  83. "name": "database",
  84. "default": "",
  85. "optional": false,
  86. "control": "text",
  87. "type": "string",
  88. "hint": {
  89. "en_US": "Database name",
  90. "zh_CN": "库名称"
  91. },
  92. "label": {
  93. "en_US": "Database name",
  94. "zh_CN": "库名称"
  95. }
  96. },
  97. {
  98. "name": "table",
  99. "default": "",
  100. "optional": false,
  101. "control": "text",
  102. "type": "string",
  103. "hint": {
  104. "en_US": "Table name",
  105. "zh_CN": "表名"
  106. },
  107. "label": {
  108. "en_US": "Table name",
  109. "zh_CN": "表名"
  110. }
  111. },
  112. {
  113. "name": "fields",
  114. "default": [],
  115. "optional": true,
  116. "control": "list",
  117. "type": "list_string",
  118. "hint": {
  119. "en_US": "Field of table",
  120. "zh_CN": "表字段"
  121. },
  122. "label": {
  123. "en_US": "Table field",
  124. "zh_CN": "表字段"
  125. }
  126. },
  127. {
  128. "name": "provideTs",
  129. "default": false,
  130. "optional": false,
  131. "control": "radio",
  132. "type": "bool",
  133. "hint": {
  134. "en_US": "Whether to provide a timestamp",
  135. "zh_CN": "是否提供时间戳"
  136. },
  137. "label": {
  138. "en_US": "Whether to provide a timestamp",
  139. "zh_CN": "是否提供时间戳"
  140. }
  141. },
  142. {
  143. "name": "tsFieldName",
  144. "default": "",
  145. "optional": false,
  146. "control": "text",
  147. "type": "string",
  148. "hint": {
  149. "en_US": "Timestamp field name",
  150. "zh_CN": "时间戳字段名"
  151. },
  152. "label": {
  153. "en_US": "Timestamp field name",
  154. "zh_CN": "时间戳字段名"
  155. }
  156. },
  157. {
  158. "name": "sTable",
  159. "default": "",
  160. "optional": true,
  161. "control": "text",
  162. "type": "string",
  163. "hint": {
  164. "en_US": "Super Table name",
  165. "zh_CN": "超级表名"
  166. },
  167. "label": {
  168. "en_US": "Super Table name",
  169. "zh_CN": "超级表名"
  170. }
  171. },
  172. {
  173. "name": "tableDataField",
  174. "default": "",
  175. "optional": true,
  176. "control": "text",
  177. "type": "string",
  178. "hint": {
  179. "en_US": "table Data from Stream Field",
  180. "zh_CN": "表数据来源"
  181. },
  182. "label": {
  183. "en_US": "Table Data from Stream Field",
  184. "zh_CN": "表数据来源"
  185. }
  186. },
  187. {
  188. "name": "tagFields",
  189. "default": [],
  190. "optional": true,
  191. "control": "list",
  192. "type": "list_string",
  193. "hint": {
  194. "en_US": "Fields for tags",
  195. "zh_CN": "标签字段"
  196. },
  197. "label": {
  198. "en_US": "Tags fields",
  199. "zh_CN": "标签字段"
  200. }
  201. }
  202. ],
  203. "node": {
  204. "category": "Sink",
  205. "icon": "iconPath",
  206. "label": {
  207. "en": "Tdengine",
  208. "zh": "Tdengine"
  209. }
  210. }
  211. }