forked from elasticio/splitter-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.json
57 lines (57 loc) · 1.92 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"title": "Splitter",
"version": "1.3.0",
"description": "Splits a message into multiple messages.",
"buildType":"docker",
"actions": {
"split": {
"deprecated": true,
"title": "Split Message By Array",
"help": {
"description": "This action is deprecated, please use Split on JSONata Expression instead.",
"link": "/components/splitter/index.html#split-message-by-array"
},
"main": "./split.js",
"fields": {
"splitter": {
"label": "Split Property",
"viewClass": "SelectPropertyView",
"required": true
}
}
},
"splitOnJsonataExpression": {
"title": "Split on JSONata Expression",
"help": {
"description": "Evaluates the input based on a JSONata expression. Assuming the evaluation is an array, the array is split and emitted to multiple messages.",
"link": "/components/splitter/index.html#split-on-jsonata-expression"
},
"main": "./lib/actions/splitOnJsonata.js",
"fields": {
"expression": {
"label": "JSONata Expression",
"required": true,
"viewClass": "JSONataView"
}
}
},
"reassemble": {
"title": "Re-assemble Messages",
"help": {
"description": "Inverse operation from split: Re-assemble a group of messages that have previously been split",
"link": "/components/splitter/index.html#re-assemble-messages"
},
"main": "./lib/actions/reassemble.js",
"dynamicMetadata": true,
"fields": {
"mode": {
"viewClass": "SelectView",
"label": "Behavior",
"required": true,
"model": {"groupSize": "Produce Groups of Fixed Size (Don't Emit Partial Groups)", "timeout": "Group All Incoming Messages", "groupSize&timeout": "Produce Groups of Fixed Size (Emit Partial Groups)"},
"prompt": "Select behavior"
}
}
}
}
}