grafana/pkg/services/ngalert/notifier
Sofia Papagiannaki 04d5dcb7c8
Alerting: modify DB table, accessors and migration to restrict org access (#37414)
* Alerting: modify table and accessors to limit org access appropriately

* Update migration to create multiple Alertmanager configs

* Apply suggestions from code review

Co-authored-by: gotjosh <josue@grafana.com>

* replace mg.ClearMigrationEntry()

mg.ClearMigrationEntry() would create a new session.
This commit introduces a new migration for clearing an entry from migration log for replacing  mg.ClearMigrationEntry() so that all dashboard alert migration operations will run inside the same transaction.
It adds also `SkipMigrationLog()` in Migrator interface for skipping adding an entry in the migration_log.

Co-authored-by: gotjosh <josue@grafana.com>
2021-08-12 16:04:09 +03:00
..
channels Alerting: Remove unused fields in Pagerduty struct (#37198) 2021-07-27 10:41:48 +05:30
alertmanager_test.go Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
alertmanager.go Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
alerts.go Alerting: A better and cleaner way to know if Alertmanager is initialised (#36659) 2021-07-12 18:53:01 +05:30
available_channels.go Alerting: Add support for configuring avatar URL for the Discord notifier (#33355) 2021-05-28 23:00:21 +02:00
config_test.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
config.go NGAlert: Consolidate on standard errors package (#33249) 2021-04-22 11:18:25 +02:00
settings.go AlertingNG: Add alert provider and basic structure with dispatcher, silences and delivery stages (#31833) 2021-03-16 10:44:52 +01:00
silences.go NGAlert: Consolidate on standard errors package (#33249) 2021-04-22 11:18:25 +02:00
status.go Alerting: Implement /status for the notification system (#33227) 2021-06-15 19:14:02 +03:00