grafana/pkg/services/ngalert/schedule
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
..
alert_rule_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
alert_rule.go Alerting: Fix evaluation metrics to not count retries (#85873) 2024-04-12 16:20:46 +02:00
alerts_sender_mock.go Alerting: Fetch alerts from a remote Alertmanager (#75844) 2023-10-19 11:27:37 +02:00
fetcher.go Alerting: Small refactor, move unrelated functions out of fetcher (#82459) 2024-02-14 20:01:32 +02:00
jitter_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
jitter.go Alerting: Enable group-level rule evaluation jittering by default, remove feature toggle (#82212) 2024-02-09 15:53:58 -06:00
loaded_metrics_reader_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
loaded_metrics_reader.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02:00
metrics_test.go Alerting: Small refactor, move unrelated functions out of fetcher (#82459) 2024-02-14 20:01:32 +02:00
metrics.go Alerting: Create metric for rules using simple notifications (#82904) 2024-02-16 19:01:49 +02:00
registry_bench_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
registry_test.go Alerting: Add database migration for recording rule fields (#87012) 2024-05-09 12:12:44 -05:00
registry.go Alerting: Add database migration for recording rule fields (#87012) 2024-05-09 12:12:44 -05:00
schedule_unit_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
schedule.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02:00
testing.go Alerting: Fix data races and improve testing (#81994) 2024-02-14 12:45:39 -03:00