grafana/pkg/services/ngalert/schedule
Alexander Weaver 6c5e94095d
Alerting: Scheduler and registry handle rules by an interface (#84044)
* export Evaluation

* Export Evaluation

* Export RuleVersionAndPauseStatus

* export Eval, create interface

* Export update and add to interface

* Export Stop and Run and add to interface

* Registry and scheduler use rule by interface and not concrete type

* Update factory to use interface, update tests to work over public API rather than writing to channels directly

* Rename map in registry

* Rename getOrCreateInfo to not reference a specific implementation

* Genericize alertRuleInfoRegistry into ruleRegistry

* Rename alertRuleInfo to alertRule

* Comments on interface

* Update pkg/services/ngalert/schedule/schedule.go

Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>

---------

Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>
2024-03-11 22:57:38 +02:00
..
alert_rule_test.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02:00
alert_rule.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +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: Add setting to distribute rule group evaluations over time (#80766) 2024-01-18 12:48:11 -06: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: Support hysteresis command expression (#75189) 2024-01-04 11:47:13 -05: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: Scheduler use rule fingerprint instead of version (#66531) 2023-04-28 10:42:16 -04:00
registry_test.go Alerting: Move alertRuleInfo and tests to new files (#83854) 2024-03-04 11:24:49 -06:00
registry.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02:00
schedule_unit_test.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02: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