summaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/tools/EsAutoQuery/closedLoopAlarmDuration.json
diff options
context:
space:
mode:
Diffstat (limited to 'extra/docker/elk/tools/EsAutoQuery/closedLoopAlarmDuration.json')
-rw-r--r--extra/docker/elk/tools/EsAutoQuery/closedLoopAlarmDuration.json34
1 files changed, 0 insertions, 34 deletions
diff --git a/extra/docker/elk/tools/EsAutoQuery/closedLoopAlarmDuration.json b/extra/docker/elk/tools/EsAutoQuery/closedLoopAlarmDuration.json
deleted file mode 100644
index 5a295454..00000000
--- a/extra/docker/elk/tools/EsAutoQuery/closedLoopAlarmDuration.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "query" : {
- "bool": {
- "must": [
- { "match": { "closedLoopEventStatus": "ABATED" } }
- ]
- }
- },
- "script_fields" : {
- "closedLoopAlarmDuration" : {
- "script" : {
- "lang": "painless",
- "source": "
-if (doc.get('closedLoopEventStatus.keyword').value == 'ABATED') {
- return doc.get('closedLoopAlarmEnd').value - doc.get('closedLoopAlarmStart').value;
-}
-return null
-"
- }
- }
- , "closedLoopAlarmStart" : {
- "script" : {
- "lang": "painless",
- "source": "doc['closedLoopAlarmStart']"
- }
- }
- , "closedLoopAlarmEnd" : {
- "script" : {
- "lang": "painless",
- "source": "doc['closedLoopAlarmEnd']"
- }
- }
- }
-}