3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services/ngalert/models
Yuri Tseretyan 05bf241952
Alerting: Update state manager to return StateTransitions when Delete or Reset ()
* 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
..
admin_configuration_test.go Alerting: Remove url based external alertmanagers config () 2022-11-10 16:34:13 +01:00
admin_configuration.go Alerting: Remove url based external alertmanagers config () 2022-11-10 16:34:13 +01:00
alert_query_test.go Alerting: Display query from grafana-managed alert rules on /api/v1/rules () 2022-03-14 10:39:20 +00:00
alert_query.go Chore: Expression engine to support relative time range () 2022-10-26 16:13:58 -04:00
alert_rule_test.go Alerting: Set Dashboard and Panel IDs on rule group replacement () 2022-12-16 11:47:25 +01:00
alert_rule.go Alerting: Update state manager to return StateTransitions when Delete or Reset () 2023-01-27 09:46:21 +01:00
alertmanager.go Alerting: add collision safe update function for alertmanager configurations () 2022-03-23 09:31:46 +01:00
constants.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests () 2022-12-21 13:25:58 +01:00
history.go Alerting: Create query interface for state history along with annotation-based implementation () 2023-01-19 10:45:31 +01:00
image_test.go Alerting: Fix test fails in some environments () 2022-11-07 16:34:37 +00:00
image.go Alerting: Fix test fails in some environments () 2022-11-07 16:34:37 +00:00
instance_labels.go Alerting: Write and Delete multiple alert instances. () 2022-10-06 14:22:58 +08:00
instance_test.go Alerting: Add alert pausing feature () 2023-01-26 18:29:10 +01:00
instance.go Alerting: Add alert pausing feature () 2023-01-26 18:29:10 +01:00
provisioning.go Drop ProvenanceOrgAdapter and build into store API instead () 2022-04-26 10:30:57 -05:00
testing.go Alerting: Add alert pausing feature () 2023-01-26 18:29:10 +01:00
time.go Alerting: Fix test fails in some environments () 2022-11-07 16:34:37 +00:00