mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add toggle for state history backend and shells * Extract some shared logic and add tests
23 lines
498 B
Go
23 lines
498 B
Go
package historian
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/log"
|
|
"github.com/grafana/grafana/pkg/services/ngalert/models"
|
|
"github.com/grafana/grafana/pkg/services/ngalert/state"
|
|
)
|
|
|
|
type RemoteLokiBackend struct {
|
|
log log.Logger
|
|
}
|
|
|
|
func NewRemoteLokiBackend() *RemoteLokiBackend {
|
|
return &RemoteLokiBackend{
|
|
log: log.New("ngalert.state.historian"),
|
|
}
|
|
}
|
|
|
|
func (h *RemoteLokiBackend) RecordStatesAsync(ctx context.Context, _ *models.AlertRule, _ []state.StateTransition) {
|
|
}
|