Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(demo): more random silence duration #1104

Merged
merged 1 commit into from
Oct 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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