-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent.json
More file actions
52 lines (52 loc) · 2.11 KB
/
Copy pathcomponent.json
File metadata and controls
52 lines (52 loc) · 2.11 KB
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
{
"title": "Filter",
"version": "1.1.5",
"description": "elastic.io filter component to filter incoming data based on arbitrary expression",
"actions": {
"filter": {
"deprecated": true,
"title": "Filter",
"description": "This action is deprecated, please use Simple JSONata Filter instead.",
"main": "./lib/actions/filter.js",
"fields": {
"condition": {
"label": "Filter condition",
"viewClass": "TextFieldWithNoteView",
"required": true,
"placeholder": "body.value > 100",
"note": "You can type any JavaScript expression here, if it is evaluated to <i>false</i> message will be rejected."
},
"reject": {
"label": "(Optional) Send rejected messages to",
"viewClass": "SelectView",
"prompt": "Select integration flow",
"required": false,
"model": "getFlows"
}
},
"metadata": {}
},
"SimpleJSONataFilter": {
"title": "Simple JSONata Filter",
"description": "Please use this action in place of the deprecated Filter action.",
"main": "./lib/actions/simpleJSONataFilter.js",
"fields": {
"expression": {
"label": "JSONata Expression",
"required": true,
"viewClass": "JSONataView"
},
"assertion": {
"label": "Assertion",
"Note": "Check this when you want to throw error when condition is not met",
"viewClass": "CheckBoxView"
},
"addMetadataToResponse": {
"label": "Metadata To Response",
"Note": "Adding passthrough from a previous step to message body as `elasticioMeta` variable, if enabled",
"viewClass": "CheckBoxView"
}
}
}
}
}