Skip to content

Commit

Permalink
Add 2, 3 and 6 hours silence options (#1822)
Browse files Browse the repository at this point in the history
# What this PR does
This PR adds additional silence options in the UI. Currently we only
have 1 hour, 4 hours and 12 hours silence options. I think it's worth it
to have finer silence options.

## Which issue(s) this PR fixes
No issue ticket but I can create one.

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
  • Loading branch information
tommysitehost authored Apr 26, 2023
1 parent cdb62f2 commit 23c7a6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added

- Add 2, 3 and 6 hours silence options

## v1.2.15 (2023-04-24)

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions engine/apps/alerts/models/alert_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ class AlertGroup(AlertGroupSlackRenderingMixin, EscalationSnapshotMixin, models.
SILENCE_DELAY_OPTIONS = (
(1800, "30 minutes"),
(3600, "1 hour"),
(7200, "2 hours"),
(10800, "3 hours"),
(14400, "4 hours"),
(21600, "6 hours"),
(43200, "12 hours"),
(57600, "16 hours"),
(72000, "20 hours"),
Expand Down

0 comments on commit 23c7a6f

Please sign in to comment.