Skip to content

Commit

Permalink
Merge pull request #1104 from prymitive/demo-random
Browse files Browse the repository at this point in the history
feat(demo): more random silence duration
  • Loading branch information
prymitive authored Oct 30, 2019
2 parents 0c11165 + 11a99ab commit ca632b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -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)
)
Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit ca632b7

Please sign in to comment.