grafana/pkg/services/ngalert/store
Alexander Weaver 935059a376
Alerting: Create basic storage layer for provisioning (#44679)
* Simplistic store API for provenance lookups on arbitrary types

* Add a few notes in comments

* Improved type safety for provisioned objects

* Clean-up TODOs for future PRs

* Clean up provisioning model

* Clean up tests

* Restrict allowable types in interface

* Fix linter error

* Move AlertRule domain methods to same file as AlertRule definition

* Update pkg/services/ngalert/models/provisioning.go

Co-authored-by: George Robinson <george.robinson@grafana.com>

* Complete interface rename

* Pass context through store API

* More idiomatic method names

* Better error description

* Improve code-docs

* Use ORM language instead of raw sql

* Add support for records in different orgs

* ResourceTypeID -> ResourceType since it's not an ID

Co-authored-by: George Robinson <george.robinson@grafana.com>
2022-02-04 13:23:19 -06:00
..
admin_configuration.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
alert_rule.go Alerting: declare constants for __dashboardUid__ and __panelId__ literals (#39976) 2021-10-07 17:30:06 -04:00
alertmanager.go Alerting: Optimization of fetching data in multiorg alertmanager (#39237) 2021-09-21 11:01:23 -04:00
database.go Alerting: tune rule evaluation via configuration (#35623) 2021-09-28 13:00:16 +03:00
instance_database_test.go Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
instance_database.go Alerting: automatically remove stale alerting states (#36767) 2021-07-26 18:12:04 +02: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