diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:18:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:18:42 +0000 |
commit | 9f39660f50004ca7c49ea171e2a6f199487cd667 (patch) | |
tree | 4a77cd3e323c37b0e5b3d7578b9718cdf1a89262 /examples | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-eventdb-9f39660f50004ca7c49ea171e2a6f199487cd667.tar.xz icingaweb2-module-eventdb-9f39660f50004ca7c49ea171e2a6f199487cd667.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')
-rw-r--r-- | examples/legacy-filter/column-integration.json | 50 | ||||
-rw-r--r-- | examples/legacy-filter/examples.md | 9 | ||||
-rw-r--r-- | examples/legacy-filter/full-filter.json | 77 |
3 files changed, 136 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 + } +} diff --git a/examples/legacy-filter/examples.md b/examples/legacy-filter/examples.md new file mode 100644 index 0000000..fdcba03 --- /dev/null +++ b/examples/legacy-filter/examples.md @@ -0,0 +1,9 @@ +Legacy Filter JSON examples +=========================== + +Here are some JSON examples, each line is a single filter used in `edb_filter` custom variable. + + { host: 'otherhostname' } + { host: 'specialhostname', priorityExclusion: [] } + { "host": ".*", "programInclusion": ["cloud-monitoring"] } + { programInclusion: ['test-program'] } diff --git a/examples/legacy-filter/full-filter.json b/examples/legacy-filter/full-filter.json new file mode 100644 index 0000000..5d89277 --- /dev/null +++ b/examples/legacy-filter/full-filter.json @@ -0,0 +1,77 @@ +/* + NOTE: this is a JSON file with comments. You might not be able to parse it, depending on the implementation! + + This is the full filter style, that the old EventDB Cronk supported. + + The old monitoring integration *did not* support the exact filter. +*/ +{ + "hostFilter": { + "include_pattern": "test", + "include_pattern_type": "exact", + "exclude_pattern_type": "regexp", + "exclude_pattern": "aa.*b", + "include_set": [ + "test" + ], + "exclude_set": [] + }, + "programFilter": { + "include_pattern": false, + "include_pattern_type": "disabled", + "exclude_pattern": "test", + "exclude_pattern_type": "contains", + "include_set": [ + "" + ], + "exclude_set": [] + }, + "messageFilter": { + "items": [ + { + "type": "exc", + "message": "onlydebug", + "isRegexp": false + }, + { + "type": "inc", + "message": "needthis.*", + "isRegexp": true + } + ] + }, + "misc": { + "hideAck": true + }, + "sourceExclusion": [ + "2", + "3", + "4" + ], + "priorityExclusion": [ + "5", + "6", + "7" + ], + "facilityExclusion": [ + "8", + "9", + "10", + "11" + ], + "timespan": { + "from": 1502362200, + "to": 1502362200 + }, + "display": { + "order": { + "field": "created", + "dir": "desc" + }, + "group": { + "field": null + }, + "count": "id", + "limit": 200 + } +}
\ No newline at end of file |