Alerting: Migrate paused alerts to silences (#34898)

* Alerting: Migrate paused alerts to silences

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>

* Fix lint

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
Ganesh Vernekar
2021-05-31 17:30:58 +05:30
committed by GitHub
parent 8c93899b15
commit 7c25465b3a
6 changed files with 137 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ type dashAlert struct {
Message string
Frequency int64
For time.Duration
State string
Settings json.RawMessage
ParsedSettings *dashAlertSettings
@@ -30,6 +31,7 @@ SELECT id,
message,
frequency,
for,
state,
settings
FROM
alert