tdengine.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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/plugins/sinks/tdengine.md",
  12. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/plugins/sinks/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. "name": "ip",
  23. "default": "127.0.0.1",
  24. "optional": false,
  25. "control": "text",
  26. "type": "string",
  27. "hint": {
  28. "en_US": "IP address of Taosdb",
  29. "zh_CN": "Taosdb IP 地址"
  30. },
  31. "label": {
  32. "en_US": "Database address",
  33. "zh_CN": "数据库地址"
  34. }
  35. }, {
  36. "name": "port",
  37. "default": 0,
  38. "optional": false,
  39. "control": "text",
  40. "type": "int",
  41. "hint": {
  42. "en_US": "Database port",
  43. "zh_CN": "数据库端口号"
  44. },
  45. "label": {
  46. "en_US": "Port",
  47. "zh_CN": "端口号"
  48. }
  49. }, {
  50. "name": "user",
  51. "default": "root",
  52. "optional": false,
  53. "control": "text",
  54. "type": "string",
  55. "hint": {
  56. "en_US": "Username",
  57. "zh_CN": "用户名"
  58. },
  59. "label": {
  60. "en_US": "Username",
  61. "zh_CN": "用户名"
  62. }
  63. }, {
  64. "name": "password",
  65. "default": "taosdata",
  66. "optional": false,
  67. "control": "text",
  68. "type": "string",
  69. "hint": {
  70. "en_US": "Password of Taosdb",
  71. "zh_CN": "数据库密码"
  72. },
  73. "label": {
  74. "en_US": "Password",
  75. "zh_CN": "密码"
  76. }
  77. }, {
  78. "name": "database",
  79. "default": "",
  80. "optional": false,
  81. "control": "text",
  82. "type": "string",
  83. "hint": {
  84. "en_US": "Database name",
  85. "zh_CN": "库名称"
  86. },
  87. "label": {
  88. "en_US": "Database name",
  89. "zh_CN": "库名称"
  90. }
  91. }, {
  92. "name": "table",
  93. "default": "",
  94. "optional": false,
  95. "control": "text",
  96. "type": "string",
  97. "hint": {
  98. "en_US": "Table name",
  99. "zh_CN": "表名"
  100. },
  101. "label": {
  102. "en_US": "Table name",
  103. "zh_CN": "表名"
  104. }
  105. },
  106. {
  107. "name": "fields",
  108. "default": [],
  109. "optional": false,
  110. "control": "list",
  111. "type": "list_string",
  112. "hint": {
  113. "en_US": "Field of table",
  114. "zh_CN": "表字段"
  115. },
  116. "label": {
  117. "en_US": "Table field",
  118. "zh_CN": "表字段"
  119. }
  120. },
  121. {
  122. "name": "provideTs",
  123. "default": false,
  124. "optional": false,
  125. "control": "radio",
  126. "type": "bool",
  127. "hint": {
  128. "en_US": "Whether to provide a timestamp",
  129. "zh_CN": "是否提供时间戳"
  130. },
  131. "label": {
  132. "en_US": "Whether to provide a timestamp",
  133. "zh_CN": "是否提供时间戳"
  134. }
  135. },
  136. {
  137. "name": "tsFieldName",
  138. "default":"",
  139. "optional": false,
  140. "control": "text",
  141. "type": "string",
  142. "hint": {
  143. "en_US": "Timestamp field name",
  144. "zh_CN": "时间戳字段名"
  145. },
  146. "label": {
  147. "en_US": "Timestamp field name",
  148. "zh_CN": "时间戳字段名"
  149. }
  150. }]
  151. }