123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- {
- "about": {
- "trial": true,
- "author": {
- "name": "EMQ",
- "email": "contact@emqx.io",
- "company": "EMQ Technologies Co., Ltd",
- "website": "https://www.emqx.io"
- },
- "helpUrl": {
- "en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/image.html",
- "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/image.html"
- },
- "description": {
- "en_US": "This sink is used to save the picture to the specified folder.",
- "zh_CN": "本插件用于将图片保存到指定文件夹。"
- }
- },
- "libs": [
- ],
- "properties": [{
- "name": "path",
- "default": "",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "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.",
- "zh_CN": "保存图片的文件夹名,例如 ./tmp。注意:多条 rule 路径不能重复,否则会出现彼此删除的现象。"
- },
- "label": {
- "en_US": "Path of file",
- "zh_CN": "文件路径"
- }
- }, {
- "name": "imageFormat",
- "default": "jpeg",
- "optional": true,
- "control": "select",
- "values": [
- "jpeg",
- "png"
- ],
- "type": "string",
- "hint": {
- "en_US": "File format, support jpeg and png.",
- "zh_CN": "文件格式,支持 jpeg 和 png。"
- },
- "label": {
- "en_US": "The format of image",
- "zh_CN": "图片格式"
- }
- },{
- "name": "maxAge",
- "default": 1000,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "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.",
- "zh_CN": "最长文件存储时间(小时)。默认值为72,这表示图片最多保存3天。"
- },
- "label": {
- "en_US": "maxAge",
- "zh_CN": "最长保留时间"
- }
- },{
- "name": "maxCount",
- "default": 1000,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "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.",
- "zh_CN": "存储图片的最大数量,默认值是1000,删除时间较早的图片,与maxAge是或的关系。"
- },
- "label": {
- "en_US": "maxCount",
- "zh_CN": "最大写入数量"
- }
- }],
- "node": {
- "category": "sink",
- "icon": "iconPath",
- "label": {
- "en": "Image",
- "zh": "图像"
- }
- }
- }
|