grafana/pkg/services/ngalert/state
Yuriy Tseretyan 7b6437402a
Alerting: Refactor state manager's cache (#56197)
* remove ResetAllStates because it's not used
* refactor cache to accept logs, metrics and url as method args
* update manager Warm method to set the entire state at once
* remove unused reset method
* introduce ruleStates
* change getOrCreate to belong to ruleStates
* update Get to not return error
2022-10-06 15:30:12 -04:00
..
historian Alerting: Move annotation functionality behind a history persistence interface (#56133) 2022-10-05 15:32:20 -05:00
cache_test.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
cache.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
manager_private_test.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00
manager_test.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
manager.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
persist.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00
state_test.go Alerting: Fix send resolved notifications (#54793) 2022-09-15 17:25:05 +01:00
state.go Alerting: Fix send resolved notifications (#54793) 2022-09-15 17:25:05 +01:00
template_test.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00
template.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00
testing.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00