mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -22,8 +22,10 @@ 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.
|
||||
RecordStatesAsync(ctx context.Context, rule *models.AlertRule, states []StateTransition)
|
||||
// RecordStates writes a number of state transitions for a given rule to state history. It returns a channel that
|
||||
// is closed when writing the state transitions has completed. If an error has occurred, the channel will contain a
|
||||
// non-nil error.
|
||||
RecordStatesAsync(ctx context.Context, rule *models.AlertRule, states []StateTransition) <-chan error
|
||||
}
|
||||
|
||||
// ImageCapturer captures images.
|
||||
|
||||
Reference in New Issue
Block a user