grafana/pkg/services/ngalert/state
Alexander Weaver 046a9bb7c1
Alerting: Copy rule definitions into state history (#62032)
* Copy rules instead of accepting pointer

* Deep-copy the rule, for even more guarantees

* Create struct just for needed fields

* Move RuleMeta to historian/model package, iron out package dependencies

* Move tests for dash ID parsing to model package along with code
2023-01-25 11:29:57 -06:00
..
historian Alerting: Copy rule definitions into state history (#62032) 2023-01-25 11:29:57 -06:00
cache_test.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
cache.go Alerting: Do not persist noop transition from Normal state. (#61201) 2023-01-13 18:29:29 -05:00
image_mock.go Alerting: Break dependency between state and image packages (#58381) 2022-11-09 15:06:49 -06:00
manager_private_test.go Alerting: Do not persist noop transition from Normal state. (#61201) 2023-01-13 18:29:29 -05:00
manager_test.go Alerting: Create query interface for state history along with annotation-based implementation (#61646) 2023-01-19 10:45:31 +01:00
manager.go Alerting: Copy rule definitions into state history (#62032) 2023-01-25 11:29:57 -06:00
persist.go Alerting: Copy rule definitions into state history (#62032) 2023-01-25 11:29:57 -06:00
state_test.go Alerting: Better define how we set states (#59977) 2022-12-08 20:12:13 +00:00
state.go Alerting: Do not persist noop transition from Normal state. (#61201) 2023-01-13 18:29:29 -05:00
template_functions.go Extract custom template functions (#60695) 2022-12-22 17:31:40 -03:00
template_test.go Remove explore compact URLs (#59686) 2022-12-14 12:57:53 -06:00
template.go Extract custom template functions (#60695) 2022-12-22 17:31:40 -03:00
testing.go Alerting: Copy rule definitions into state history (#62032) 2023-01-25 11:29:57 -06:00