grafana/pkg/services/ngalert/store
Alexander Weaver 36ef611cf4
Alerting: Add database migration for recording rule fields (#87012)
* Create recording rule fields in model

* Add migration

* Write to database, support in version table

* extend fingerprint

* Force fields to be empty on validate

* Another storage spot, tests for fingerprint

* Explicitly set defaults in provisioning API

* Tests for main API validation

* Add diff tests even though fields are unpopulated for now

* Use struct tag approach instead of FromDB/ToDB hooks as it better handles nulls when deserializing

* test for deser

* Backout RecordTo for now since it's not decided in the doc

* back out of migration too

* Drop datasourceref for now

* address linter complaints

* Try a single outer struct with all fields embedded
2024-05-09 12:12:44 -05:00
..
admin_configuration_store_mock.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
admin_configuration.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
alert_rule_test.go Alerting: Add database migration for recording rule fields (#87012) 2024-05-09 12:12:44 -05:00
alert_rule.go Alerting: Add database migration for recording rule fields (#87012) 2024-05-09 12:12:44 -05:00
alertmanager_test.go Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
alertmanager.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
database.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
deltas_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
deltas.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00
image_test.go Alerting: Use URLs in image annotations (#66804) 2023-04-26 13:06:18 -03:00
image.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
instance_database_test.go feat(alerting): add async state persister (#80763) 2024-01-22 13:07:11 +01:00
instance_database.go feat(alerting): add async state persister (#80763) 2024-01-22 13:07:11 +01:00
org.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
provisioning_store_test.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
provisioning_store.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
range_to_instant_test.go Alerting: Apply query optimization to eval endpoints (#78566) 2023-11-28 19:44:28 -05:00
range_to_instant.go Alerting: Apply query optimization to eval endpoints (#78566) 2023-11-28 19:44:28 -05:00
testing.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
transactions.go Alerting: Provisioning API - Notification Policies (#46755) 2022-04-05 16:48:51 -05:00