From 2d320246a38cd6113d40de01ce407d0763ad5308 Mon Sep 17 00:00:00 2001 From: Nikolay Stanchev <ns17@it-innovation.soton.ac.uk> Date: Wed, 7 Nov 2018 14:22:38 +0000 Subject: [PATCH] Updates TICK script templates to only trigger alerts on state change --- src/service/resources/TICKscript/deadman-template.tick | 3 ++- src/service/resources/TICKscript/relative-template.tick | 3 ++- src/service/resources/TICKscript/threshold-batch-template.tick | 3 ++- .../resources/TICKscript/threshold-stream-template.tick | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/service/resources/TICKscript/deadman-template.tick b/src/service/resources/TICKscript/deadman-template.tick index 730a461..ae6d685 100644 --- a/src/service/resources/TICKscript/deadman-template.tick +++ b/src/service/resources/TICKscript/deadman-template.tick @@ -34,4 +34,5 @@ stream .details('db=' + db + ',sfc=' + sfc + ',sfci=' + sfci + ',policy=' + policy) .message(messageValue) .topic(topicID) - .noRecoveries() \ No newline at end of file + .noRecoveries() + .stateChangesOnly() \ No newline at end of file diff --git a/src/service/resources/TICKscript/relative-template.tick b/src/service/resources/TICKscript/relative-template.tick index 669954b..1b27df7 100644 --- a/src/service/resources/TICKscript/relative-template.tick +++ b/src/service/resources/TICKscript/relative-template.tick @@ -52,4 +52,5 @@ past .crit(comparisonLambda) .message(messageValue) .topic(topicID) - .noRecoveries() \ No newline at end of file + .noRecoveries() + .stateChangesOnly() \ No newline at end of file diff --git a/src/service/resources/TICKscript/threshold-batch-template.tick b/src/service/resources/TICKscript/threshold-batch-template.tick index f5f7a64..ed7b603 100644 --- a/src/service/resources/TICKscript/threshold-batch-template.tick +++ b/src/service/resources/TICKscript/threshold-batch-template.tick @@ -36,4 +36,5 @@ batch .crit(comparisonLambda) .message(messageValue) .topic(topicID) - .noRecoveries() \ No newline at end of file + .noRecoveries() + .stateChangesOnly() \ No newline at end of file diff --git a/src/service/resources/TICKscript/threshold-stream-template.tick b/src/service/resources/TICKscript/threshold-stream-template.tick index 9eb8865..68b50f3 100644 --- a/src/service/resources/TICKscript/threshold-stream-template.tick +++ b/src/service/resources/TICKscript/threshold-stream-template.tick @@ -34,3 +34,4 @@ stream .message(messageValue) .topic(topicID) .noRecoveries() + .stateChangesOnly() \ No newline at end of file -- GitLab