tdengine.json 3.0 KB

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