grafana/pkg/services/ngalert/models
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
..
admin_configuration.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
alert_query_test.go Alerting/Expr: New SSE Request/QueryType, alerting move data source UID (#33282) 2021-04-23 16:52:32 +02:00
alert_query.go UAlerting: Increase default max datapoints (#34223) 2021-05-17 18:46:52 +02:00
alert_rule.go Alerting: Refactor API endpoints for fetching alert rules (#37055) 2021-07-22 09:53:14 +03:00
alertmanager.go Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
eval_condition.go [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00
instance_labels.go Alerting: Fix state cache id duplication (#33480) 2021-04-28 11:42:19 -04:00
instance.go Alerting/Chore: Backend remove def_ columns from instance (#33875) 2021-05-12 07:17:43 -04:00