summaryrefslogtreecommitdiffstats
path: root/examples/legacy-filter/column-integration.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:29 +0000
commita9b77c01caef9ae7a2c84e2333d28ceb028cf4d3 (patch)
tree4a77cd3e323c37b0e5b3d7578b9718cdf1a89262 /examples/legacy-filter/column-integration.json
parentInitial commit. (diff)
downloadicingaweb2-module-eventdb-a9b77c01caef9ae7a2c84e2333d28ceb028cf4d3.tar.xz
icingaweb2-module-eventdb-a9b77c01caef9ae7a2c84e2333d28ceb028cf4d3.zip
Adding upstream version 1.3.0.upstream/1.3.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/legacy-filter/column-integration.json')
-rw-r--r--examples/legacy-filter/column-integration.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/legacy-filter/column-integration.json b/examples/legacy-filter/column-integration.json
new file mode 100644
index 0000000..474031f
--- /dev/null
+++ b/examples/legacy-filter/column-integration.json
@@ -0,0 +1,50 @@
+/*
+ NOTE: this is a JSON file with comments. You might not be able to parse it, depending on the implementation!
+
+ These are the filter features mapped by the edbColumn.js integration.
+
+ See https://git.netways.org/eventdb/eventdb/blob/master/icinga-cronk/EventDB/lib/js/edbColumn.js
+*/
+{
+ "hostFilter": {
+ // Note: `data.host` is by default the hostname, unless set in edb_filter
+ "include_pattern": "{{mapped from data.host}}",
+ "include_pattern_type": "regexp",
+ "exclude_pattern_type": "disabled",
+ "exclude_pattern": false,
+ "include_set": [],
+ "exclude_set": []
+ },
+ "programFilter": {
+ "include_pattern": false,
+ "include_pattern_type": "disabled",
+ "exclude_pattern": false,
+ "exclude_pattern_type": "disabled",
+ "include_set": [ /* mapped from data.programInclusion */ ],
+ "exclude_set": [ /* mapped from data.programExclusion */ ]
+ },
+ "messageFilter": {
+ "items": [ /* mapped from data.msg */ ]
+ },
+ "misc": {
+ "hideAck": false
+ },
+ "sourceExclusion": [ /* mapped from data.sourceExclusion */ ],
+ "priorityExclusion": [ /* mapped from data.priorityExclusion */ ],
+ "facilityExclusion": [ /* mapped from data.facilityExclusion */ ],
+ "timespan": {
+ "from": "{{ mapped from data.startTime }}",
+ "to": -1
+ },
+ "display": {
+ "order": {
+ "field": "created",
+ "dir": "desc"
+ },
+ "group": {
+ "field": null
+ },
+ "count": "id",
+ "limit": 50
+ }
+}