mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Update state history service to filter states transitions (#58863)
* rename the method to better reflect its behavior * make historian filter transition on itself * call historian with all changes
This commit is contained in:
@@ -23,7 +23,7 @@ type RuleReader interface {
|
||||
// Historian maintains an audit log of alert state history.
|
||||
type Historian interface {
|
||||
// RecordStates writes a number of state transitions for a given rule to state history.
|
||||
RecordStates(ctx context.Context, rule *models.AlertRule, states []StateTransition)
|
||||
RecordStatesAsync(ctx context.Context, rule *models.AlertRule, states []StateTransition)
|
||||
}
|
||||
|
||||
// ImageCapturer captures images.
|
||||
|
||||
Reference in New Issue
Block a user