From 7e9538172aa4e7ff8df0f4ac188350a97742f2d3 Mon Sep 17 00:00:00 2001
From: Simon Crowle <sgc@it-innovation.soton.ac.uk>
Date: Mon, 19 Feb 2018 11:16:46 +0000
Subject: [PATCH] Tweaks rule output descriptor

---
 test/streaming/rules.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/streaming/rules.json b/test/streaming/rules.json
index a0101ea..faad48b 100644
--- a/test/streaming/rules.json
+++ b/test/streaming/rules.json
@@ -3,7 +3,7 @@
     "type" : "batch",
     "dbrps" : [{"db": "CLMCMetrics", "rp" : "autogen"}],
     
-    "script" : "\/\/ NGINX 1 Rule\r\n\/\/ -------------\r\nvar n1Data = batch\r\n    |query(''' SELECT mean(\"active\") AS \"mean_active\" FROM \"CLMCMetrics\".\"autogen\".\"nginx\" WHERE \"ipendpoint\"='adaptive_streaming_I1_nginx1' ''')\r\n        .period(5s)\r\n        .every(5s)\r\n\r\nvar n1Alert = n1Data\r\n    |alert()\r\n        .id('{{ .Name }}\/adaptive_streaming_I1_nginx1')\r\n        .message('{{ .ID }} is {{ .Level }} Mean active requests\/sec: {{ index .Fields \"mean_active\" }}')\r\n        .warn(lambda: \"mean_active\" > 10)\r\n        .slack()\r\n        .log( '\/tmp\/RPSLoad.log' )\r\n\r\n\/\/ NGINX 2 Rule\r\n\/\/ -------------\r\nvar n2Data = batch\r\n    |query(''' SELECT mean(\"active\") AS \"mean_active\" FROM \"CLMCMetrics\".\"autogen\".\"nginx\" WHERE \"ipendpoint\"='adaptive_streaming_I1_nginx2' ''')\r\n        .period(5s)\r\n        .every(5s)\r\n\r\nvar n2Alert = n2Data\r\n    |alert()\r\n        .id('{{ .Name }}\/adaptive_streaming_I1_nginx2')\r\n        .message('{{ .ID }} is {{ .Level }} Mean active requests\/sec: {{ index .Fields \"mean_active\" }}')\r\n        .warn(lambda: \"mean_active\" > 10)\r\n        .slack()\r\n        .log( '\/tmp\/RPSLoad.log' )",
+    "script" : "\/\/ NGINX 1 Rule\r\n\/\/ -------------\r\nvar n1Data = batch\r\n    |query(''' SELECT mean(\"active\") AS \"mean_active\" FROM \"CLMCMetrics\".\"autogen\".\"nginx\" WHERE \"ipendpoint\"='adaptive_streaming_I1_nginx1' ''')\r\n        .period(5s)\r\n        .every(5s)\r\n\r\nvar n1Alert = n1Data\r\n    |alert()\r\n        .id('{{ .Name }}\/adaptive_streaming_I1_nginx1')\r\n        .message('{{ .ID }} is {{ .Level }} Mean active connections: {{ index .Fields \"mean_active\" }}')\r\n        .warn(lambda: \"mean_active\" > 10)\r\n        .slack()\r\n        .log( '\/tmp\/RPSLoad.log' )\r\n\r\n\/\/ NGINX 2 Rule\r\n\/\/ -------------\r\nvar n2Data = batch\r\n    |query(''' SELECT mean(\"active\") AS \"mean_active\" FROM \"CLMCMetrics\".\"autogen\".\"nginx\" WHERE \"ipendpoint\"='adaptive_streaming_I1_nginx2' ''')\r\n        .period(5s)\r\n        .every(5s)\r\n\r\nvar n2Alert = n2Data\r\n    |alert()\r\n        .id('{{ .Name }}\/adaptive_streaming_I1_nginx2')\r\n        .message('{{ .ID }} is {{ .Level }} Mean active connections: {{ index .Fields \"mean_active\" }}')\r\n        .warn(lambda: \"mean_active\" > 10)\r\n        .slack()\r\n        .log( '\/tmp\/RPSLoad.log' )",
     
     "status" : "enabled"
 }
\ No newline at end of file
-- 
GitLab