123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- {
- "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/sources/builtin/file.html",
- "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sources/builtin/file.html"
- },
- "description": {
- "en_US": "Monitor file system and load the content into the eKuiper processing pipeline.",
- "zh_CN": "监控文件系统,读取文件内容,并且将数据放入 eKuiper 数据处理流水线中。"
- }
- },
- "libs": [],
- "dataSource": {
- "default": "test.json",
- "hint": {
- "en_US": "The file name without directory, e.g. test.json",
- "zh_CN": "不含路径的文件名,例如 test.json"
- },
- "label": {
- "en_US": "Data Source (File or directory relative path)",
- "zh_CN": "数据源(文件或者目录的相对地址)"
- }
- },
- "properties": {
- "default": [
- {
- "name": "fileType",
- "default": "json",
- "optional": true,
- "control": "select",
- "type": "string",
- "values": [
- "json",
- "csv",
- "lines"
- ],
- "hint": {
- "en_US": "The file format type.",
- "zh_CN": "文件格式类型"
- },
- "label": {
- "en_US": "File type",
- "zh_CN": "文件类型"
- }
- },{
- "name": "path",
- "default": "",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "The directory of the file relative to eKuiper root or an absolute path. Do not include the file name here. The file name should be defined in the stream data source.",
- "zh_CN": "文件所在文件夹的路径。请勿包含文件名,文件名应该在数据源中定义。"
- },
- "label": {
- "en_US": "Path",
- "zh_CN": "文件夹路径"
- }
- },{
- "name": "interval",
- "default": 0,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "The interval between reading the files, time unit is ms. If only read once, set it to 0",
- "zh_CN": "读取文件的间隔时间,单位为毫秒。如果只需读取一次,设置为0。"
- },
- "label": {
- "en_US": "Interval",
- "zh_CN": "间隔时间"
- }
- },{
- "name": "sendInterval",
- "default": 0,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "The sending interval between each event in millisecond.",
- "zh_CN": "事件发送的间隔时间,单位为毫秒。"
- },
- "label": {
- "en_US": "Send Interval",
- "zh_CN": "发送间隔"
- }
- },{
- "name": "actionAfterRead",
- "default": 0,
- "optional": true,
- "control": "select",
- "type": "int",
- "values": [
- 0,
- 1,
- 2
- ],
- "hint": {
- "en_US": "The action after read. 0 meas keep the file; 1 means delete the file; 2 means move the file to the path defined in the property 'moveTo'",
- "zh_CN": "读取后的操作。0表示保留文件;1表示删除文件;2表示将文件移动到属性 'moveTo' 中定义的路径。"
- },
- "label": {
- "en_US": "Action after read",
- "zh_CN": "读取后动作"
- }
- },{
- "name": "moveTo",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "The path to move the file to after read, only valid when the actionAfterRead is 1.",
- "zh_CN": "移动文件的位置, 仅用于 actionAfterRead 为 2 的情况"
- },
- "label": {
- "en_US": "Move to path",
- "zh_CN": "移动位置"
- }
- },{
- "name": "hasHeader",
- "default": false,
- "optional": true,
- "control": "radio",
- "type": "bool",
- "hint": {
- "en_US": "If the first line is header, usually used for csv file.",
- "zh_CN": "是否包含文件头,多用于 csv。若为 true,则第一行解析为文件头。"
- },
- "label": {
- "en_US": "Has header",
- "zh_CN": "是否包含文件头"
- }
- },{
- "name": "columns",
- "default": [],
- "optional": true,
- "control": "list",
- "type": "list_string",
- "hint": {
- "en_US": "Define the columns. If header is defined, this will be override.",
- "zh_CN": "定义文件的列。如果定义了文件头,该选项将被覆盖。"
- },
- "label": {
- "en_US": "Columns",
- "zh_CN": "字段列表"
- }
- },{
- "name": "ignoreStartLines",
- "default": 0,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "How many lines to be ignored at the beginning. Notice that, empty line will be ignored and not be calculated.",
- "zh_CN": "忽略开头多少行的内容。"
- },
- "label": {
- "en_US": "Ignore start lines",
- "zh_CN": "文件开头忽略的行数"
- }
- },{
- "name": "ignoreEndLines",
- "default": 0,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "How many lines to be ignored in the end. Notice that, empty line will be ignored and not be calculated.",
- "zh_CN": "忽略结尾多少行的内容。最后的空行不计算在内。。"
- },
- "label": {
- "en_US": "Ignore end lines",
- "zh_CN": "文件结尾忽略的行数"
- }
- }]
- },
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "signal"
- }
- ],
- "node": {
- "category": "source",
- "icon": "iconPath",
- "label": {
- "en_US": "File",
- "zh_CN": "File"
- }
- }
- }
|