redis.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "DengFeng HE",
  6. "email": "894220128@qq.com",
  7. "company": "personal",
  8. "website": "https://github.com/feng-crazy"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/reids.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/reids.html"
  13. },
  14. "description": {
  15. "en_US": "This a sink for Redis, it can be used for saving the analysis data into Redis.",
  16. "zh_CN": "为 Redis 的持久化插件,可以用于将分析数据存入 Redis 中"
  17. }
  18. },
  19. "libs": [
  20. "github.com/go-redis/redis/v7"
  21. ],
  22. "properties": [
  23. {
  24. "name": "addr",
  25. "default": "10.122.48.17:6379",
  26. "optional": false,
  27. "control": "text",
  28. "type": "string",
  29. "hint": {
  30. "en_US": "The addr of the Redis,example: 10.122.48.17:6379",
  31. "zh_CN": "Redis的地址, 例如: 10.122.48.17:6379"
  32. },
  33. "label": {
  34. "en_US": "Address",
  35. "zh_CN": "地址"
  36. }
  37. },
  38. {
  39. "name": "password",
  40. "default": "",
  41. "optional": true,
  42. "control": "text",
  43. "type": "string",
  44. "hint": {
  45. "en_US": "The Redis login password",
  46. "zh_CN": "Redis 登陆密码"
  47. },
  48. "label": {
  49. "en_US": "Password",
  50. "zh_CN": "密码"
  51. }
  52. },
  53. {
  54. "name": "db",
  55. "default": 0,
  56. "optional": false,
  57. "control": "text",
  58. "type": "int",
  59. "hint": {
  60. "en_US": "The database of the Redis,example: 0",
  61. "zh_CN": "Redis 的数据库,例如0"
  62. },
  63. "label": {
  64. "en_US": "DataBase name",
  65. "zh_CN": "数据库名"
  66. }
  67. },
  68. {
  69. "name": "key",
  70. "default": "key",
  71. "optional": true,
  72. "control": "text",
  73. "type": "string",
  74. "hint": {
  75. "en_US": "Select one of the Key, Key and field of Redis data and give priority to field",
  76. "zh_CN": "Redis 数据的Key, key与field选择其中一个,优先field"
  77. },
  78. "label": {
  79. "en_US": "Key",
  80. "zh_CN": "Key"
  81. }
  82. },
  83. {
  84. "name": "field",
  85. "default": "deviceName",
  86. "optional": true,
  87. "control": "text",
  88. "type": "string",
  89. "hint": {
  90. "en_US": "This field must exist and be of type string. Otherwise, use the field character as the key. Note: Do not use a data template to configure this value",
  91. "zh_CN": "json数据某一个属性,配置它作为redis数据的key值, 例如 deviceName,该字段必须存在且为string类型,否则以field字符作为key,注意:配置该值不要使用数据模板"
  92. },
  93. "label": {
  94. "en_US": "Key Field",
  95. "zh_CN": "Key 字段"
  96. }
  97. },
  98. {
  99. "name": "keyType",
  100. "optional": true,
  101. "control": "select",
  102. "default": "single",
  103. "type": "string",
  104. "values": [
  105. "single",
  106. "multiple"
  107. ],
  108. "hint": {
  109. "en_US": "Store the payload as single or multiple",
  110. "zh_CN": "以整体形式或者拆分形式保存结果到 redis。"
  111. },
  112. "label": {
  113. "en_US": "Store single or multiple",
  114. "zh_CN": "整体或者拆分保存"
  115. }
  116. },
  117. {
  118. "name": "dataType",
  119. "default": "string",
  120. "optional": false,
  121. "control": "select",
  122. "type": "string",
  123. "values": [
  124. "string",
  125. "list"
  126. ],
  127. "hint": {
  128. "en_US": "The default Redis data type is string. Note that the original key must be deleted after the Redis data type is changed. Otherwise, the modification is invalid。",
  129. "zh_CN": "Redis 数据的类型, 默认是 string, 注意修改类型之后,需在redis中删除原有key,否则修改无效。"
  130. },
  131. "label": {
  132. "en_US": "Data type",
  133. "zh_CN": "数据类型"
  134. }
  135. },
  136. {
  137. "name": "expiration",
  138. "default": -1,
  139. "optional": false,
  140. "control": "text",
  141. "type": "int",
  142. "hint": {
  143. "en_US": "Timeout duration of Redis data. This parameter is valid only for string data in seconds. The default value is -1 ",
  144. "zh_CN": "Redis数据的超时时间,仅在string类型数据有效,单位是秒,默认是永久保存-1 "
  145. },
  146. "label": {
  147. "en_US": "Expiration",
  148. "zh_CN": "超时时间"
  149. }
  150. },
  151. {
  152. "name": "rowkindField",
  153. "default": "",
  154. "optional": true,
  155. "control": "text",
  156. "type": "string",
  157. "hint": {
  158. "en_US": "Specify which field represents the action like insert or update. If not specified, all rows are default to insert",
  159. "zh_CN": "指定哪个字段表示操作,例如插入或更新。如果不指定,默认所有的数据都是插入操作"
  160. },
  161. "label": {
  162. "en_US": "Rowkind Field",
  163. "zh_CN": "动作字段"
  164. }
  165. }
  166. ],
  167. "node": {
  168. "category": "sink",
  169. "icon": "iconPath",
  170. "label": {
  171. "en": "Redis",
  172. "zh": "Redis"
  173. }
  174. }
  175. }