grafana/pkg/services/ngalert/state
George Robinson 76601f3ae7
Alerting: Better define how we set states (#59977)
This commit better defines how we set states in resultNormal,
resultAlerting, resultError and resultNoData. It changes the existing
code to call methods such as SetAlerting, SetPending, SetNormal,
SetError and NoData instead of assigning values to each individual field
whenever the state is changed. This should make it easier to understand
what fields should be set for which states and avoid cases where states are
missing, or have additional unexpected fields.
2022-12-08 20:12:13 +00:00
..
historian Alerting: Update state history service to filter states transitions (#58863) 2022-12-06 12:33:15 -05:00
cache_test.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
cache.go Alerting: Update handling of stale state (#58276) 2022-11-07 11:03:53 -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: Fix screenshot is not taken for stale series (#57982) 2022-11-02 22:14:22 +00:00
manager_test.go Alerting: Change resultError in preparation for supporting ForError duration (#59894) 2022-12-07 10:45:56 +00:00
manager.go Alerting: Change resultError in preparation for supporting ForError duration (#59894) 2022-12-07 10:45:56 +00:00
persist.go Alerting: Update state history service to filter states transitions (#58863) 2022-12-06 12:33:15 -05:00
state_test.go Alerting: Better define how we set states (#59977) 2022-12-08 20:12:13 +00:00
state.go Alerting: Better define how we set states (#59977) 2022-12-08 20:12:13 +00: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: update state manager to return StateTransition instead of State (#58867) 2022-12-06 13:07:39 -05:00