Files
grafana/pkg/services/ngalert/state/historian/loki.go
Alexander Weaver eb960d9725 Alerting: Add un-documented toggle for changing state history backend, add shells for remote loki and sql (#61072)
* Add toggle for state history backend and shells

* Extract some shared logic and add tests
2023-01-06 12:06:01 -06:00

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) {
}