grafana/pkg/services/ngalert/store
Yuriy Tseretyan f75bea481d
Alerting: validate rules and calculate changes in API controller (#45072)
* Update API controller
   - add validation of rules API model
   - add function to calculate changes between the submitted alerts and existing alerts
   - update RoutePostNameRulesConfig to validate input models, calculate changes and apply in a transaction

* Update DBStore
   - delete unused storage method. All the logic is moved upstream.
   - upsert to not modify fields of new by values from the existing alert
   - if rule has UID do not try to pull it from db. (it is done upstream)

* Add rule generator
2022-02-23 11:30:04 -05:00
..
admin_configuration.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
alert_rule.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
alertmanager.go Add context.Context to AlertingStore (#45069) 2022-02-09 09:22:09 +00:00
database.go Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
instance_database_test.go Add context.Context to InstanceStore (#45049) 2022-02-08 13:49:04 +00:00
instance_database.go Add context.Context to InstanceStore (#45049) 2022-02-08 13:49:04 +00:00
org.go Alerting: create wrapper for Alertmanager to enable org level isolation (#37320) 2021-08-24 11:28:09 +01:00
provisioning_store_test.go Alerting: Create basic storage layer for provisioning (#44679) 2022-02-04 13:23:19 -06:00
provisioning_store.go Alerting: Create basic storage layer for provisioning (#44679) 2022-02-04 13:23:19 -06:00
testing.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00