image.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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://ekuiper.org/docs/en/latest/guide/sinks/plugin/image.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/image.html"
  13. },
  14. "description": {
  15. "en_US": "This sink is used to save the picture to the specified folder.",
  16. "zh_CN": "本插件用于将图片保存到指定文件夹。"
  17. }
  18. },
  19. "libs": [
  20. ],
  21. "properties": [{
  22. "name": "path",
  23. "default": "",
  24. "optional": false,
  25. "control": "text",
  26. "type": "string",
  27. "hint": {
  28. "en_US": "The name of the folder where the pictures are saved, such as ./tmp. Note: For multiple rules, their paths cannot be repeated, otherwise they will be deleted from each other.",
  29. "zh_CN": "保存图片的文件夹名,例如 ./tmp。注意:多条 rule 路径不能重复,否则会出现彼此删除的现象。"
  30. },
  31. "label": {
  32. "en_US": "Path of file",
  33. "zh_CN": "文件路径"
  34. }
  35. }, {
  36. "name": "imageFormat",
  37. "default": "jpeg",
  38. "optional": true,
  39. "control": "select",
  40. "values": [
  41. "jpeg",
  42. "png"
  43. ],
  44. "type": "string",
  45. "hint": {
  46. "en_US": "File format, support jpeg and png.",
  47. "zh_CN": "文件格式,支持 jpeg 和 png。"
  48. },
  49. "label": {
  50. "en_US": "The format of image",
  51. "zh_CN": "图片格式"
  52. }
  53. },{
  54. "name": "maxAge",
  55. "default": 1000,
  56. "optional": true,
  57. "control": "text",
  58. "type": "int",
  59. "hint": {
  60. "en_US": "Maximum file storage time (hours). The default value is 72, which means that the picture can be stored for up to 3 days.",
  61. "zh_CN": "最长文件存储时间(小时)。默认值为72,这表示图片最多保存3天。"
  62. },
  63. "label": {
  64. "en_US": "maxAge",
  65. "zh_CN": "最长保留时间"
  66. }
  67. },{
  68. "name": "maxCount",
  69. "default": 1000,
  70. "optional": true,
  71. "control": "text",
  72. "type": "int",
  73. "hint": {
  74. "en_US": "The maximum number of stored pictures. The default value is 1000. The earlier pictures will be deleted. The relationship with maxAge is OR.",
  75. "zh_CN": "存储图片的最大数量,默认值是1000,删除时间较早的图片,与maxAge是或的关系。"
  76. },
  77. "label": {
  78. "en_US": "maxCount",
  79. "zh_CN": "最大写入数量"
  80. }
  81. }],
  82. "node": {
  83. "category": "sink",
  84. "icon": "iconPath",
  85. "label": {
  86. "en": "Image",
  87. "zh": "图像"
  88. }
  89. }
  90. }