add channel option to disable the resolved alert (OK Message) that is sent when condition returns to normal.

This commit is contained in:
Dave Waters
2018-10-15 17:16:14 -04:00
parent 938541be2e
commit 6376154b16
8 changed files with 96 additions and 63 deletions

View File

@@ -71,6 +71,9 @@ func addAlertMigrations(mg *Migrator) {
mg.AddMigration("Add column send_reminder", NewAddColumnMigration(alert_notification, &Column{
Name: "send_reminder", Type: DB_Bool, Nullable: true, Default: "0",
}))
mg.AddMigration("Add column disable_resolved_message", NewAddColumnMigration(alert_notification, &Column{
Name: "disable_resolved_message", Type: DB_Bool, Nullable: false, Default: "1",
}))
mg.AddMigration("add index alert_notification org_id & name", NewAddIndexMigration(alert_notification, alert_notification.Indices[0]))