123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- {
- "about": {
- "trial": false,
- "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/builtin/file.html",
- "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/builtin/file.html"
- },
- "description": {
- "en_US": "This a sink plugin for file, it can be used for saving the analysis data into file system.",
- "zh_CN": "本插件为文件持久化插件,可以用于将分析数据存入指定的文件中。"
- }
- },
- "libs": [
- ],
- "properties": [
- {
- "name": "path",
- "default": "",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "The file path for saving the result, could be dynamic like {{.field}}.txt",
- "zh_CN": "保存结果的文件路径,可为动态路径,例如 {{.field}}.txt"
- },
- "label": {
- "en_US": "Path of file",
- "zh_CN": "文件路径"
- }
- }, {
- "name": "fileType",
- "default": "lines",
- "optional": true,
- "control": "select",
- "type": "string",
- "values": [
- "lines",
- "json",
- "csv"
- ],
- "hint": {
- "en_US": "The file format type.",
- "zh_CN": "文件格式类型"
- },
- "label": {
- "en_US": "File type",
- "zh_CN": "文件类型"
- }
- }, {
- "name": "hasHeader",
- "default": false,
- "optional": true,
- "control": "radio",
- "type": "bool",
- "hint": {
- "en_US": "Whether to produce header, usually used for csv file.",
- "zh_CN": "是否写入文件头,多用于 csv 文件"
- },
- "label": {
- "en_US": "Has header",
- "zh_CN": "是否包含文件头"
- }
- }, {
- "name": "rollingInterval",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "The interval in millisecond for checking time based rolling policies. This controls the frequency to check whether a part file should rollover.",
- "zh_CN": "滚动到新文件的最小时间间隔(以毫秒为单位)。检查频率由checkInterval 控制。"
- },
- "label": {
- "en_US": "Rolling Interval",
- "zh_CN": "Rolling 间隔"
- }
- }, {
- "name": "checkInterval",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "The minimum time interval in milliseconde to roll to a new file. The frequency at which this is checked is controlled by the checkInterval. ",
- "zh_CN": "检查基于时间的滚动策略的间隔(以毫秒为单位),用于控制检查文件是否应该翻转的频率。"
- },
- "label": {
- "en_US": "Check Interval",
- "zh_CN": "检查间隔"
- }
- }, {
- "name": "rollingCount",
- "default": "10000",
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "The maximum message counts in a file before rollover.",
- "zh_CN": "文件翻转前的最大消息计数。"
- },
- "label": {
- "en_US": "Rolling Count",
- "zh_CN": "Rolling 计数"
- }
- }, {
- "name": "rollingNamePattern",
- "default": "",
- "optional": true,
- "control": "select",
- "type": "string",
- "values": [
- "prefix",
- "suffix",
- "none"
- ],
- "hint": {
- "en_US": "Define how to named the rolling files by specifying where to put the timestamp during file creation. The value could be \"prefix\", \"suffix\" or \"none\".",
- "zh_CN": "指定滚动文件创建时如何放置时间戳。时间戳可为“前缀”,“后缀”或“无”。"
- },
- "label": {
- "en_US": "Rolling Name Pattern",
- "zh_CN": "Rolling 文件名模式"
- }
- }],
- "node": {
- "category": "sink",
- "icon": "iconPath",
- "label": {
- "en": "File",
- "zh": "文件"
- }
- }
- }
|