grafana/pkg/services/ngalert/state
Yuri Tseretyan 05bf241952
Alerting: Update state manager to return StateTransitions when Delete or Reset (#62264)
* update Delete and Reset methods to return state transitions

this will be used by notifier code to decide whether alert needs to be sent or not.

* update scheduler to provide reason to delete states and use transitions

* update FromAlertsStateToStoppedAlert to accept StateTransition and filter by old state

* fixup

* fix tests
2023-01-27 09:46:21 +01:00
..
historian Alerting: Support context.Context in Loki interface (#61979) 2023-01-26 09:31:20 +00: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: Update state manager to return StateTransitions when Delete or Reset (#62264) 2023-01-27 09:46:21 +01:00
manager.go Alerting: Update state manager to return StateTransitions when Delete or Reset (#62264) 2023-01-27 09:46:21 +01: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: Add alert pausing feature (#60734) 2023-01-26 18:29:10 +01:00