From 11a99ab884cee5caf8df9ea708d3aa77e5f33fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 30 Oct 2019 12:49:40 +0000 Subject: [PATCH] feat(demo): more random silence duration --- demo/generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/generator.py b/demo/generator.py index 5a32ae377..ba9256cd9 100755 --- a/demo/generator.py +++ b/demo/generator.py @@ -266,7 +266,7 @@ def silences(self): [newMatcher("alertname", self.name, False)], "{}Z".format(now.isoformat()), "{}Z".format((now + datetime.timedelta( - minutes=30)).isoformat()), + minutes=random.randint(0, 60))).isoformat()), "me@example.com", "This alert is always silenced and the silence comment is very " "long to test the UI. Lorem ipsum dolor sit amet, consectetur " @@ -304,7 +304,7 @@ def silences(self): newMatcher("instance", "server(1|3|5|7)", True)], "{}Z".format(now.isoformat()), "{}Z".format((now + datetime.timedelta( - minutes=20)).isoformat()), + minutes=random.randint(0, 30))).isoformat()), "me@example.com", "Silence '{}''".format(self.name) ) @@ -421,7 +421,7 @@ def silences(self): ], "{}Z".format(now.isoformat()), "{}Z".format((now + datetime.timedelta( - minutes=10)).isoformat()), + minutes=random.randint(0, 30))).isoformat()), "me@example.com", "DEVOPS-123 Pagination Test alert silenced with a long text " "to see if it gets truncated properly. It only matches first "