Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLokiStoreInternal = errutil.Internal("annotations.loki.internal") ErrLokiStoreNotFound = errutil.NotFound("annotations.loki.notFound") )
Functions ¶
This section is empty.
Types ¶
type LokiHistorianStore ¶
type LokiHistorianStore struct {
// contains filtered or unexported fields
}
LokiHistorianStore is a read store that queries Loki for alert state history.
func NewLokiHistorianStore ¶
func NewLokiHistorianStore(cfg setting.UnifiedAlertingStateHistorySettings, ft featuremgmt.FeatureToggles, db db.DB, log log.Logger) *LokiHistorianStore
func (*LokiHistorianStore) Get ¶
func (r *LokiHistorianStore) Get(ctx context.Context, query *annotations.ItemQuery, accessResources *accesscontrol.AccessResources) ([]*annotations.ItemDTO, error)
func (*LokiHistorianStore) GetTags ¶
func (r *LokiHistorianStore) GetTags(ctx context.Context, query *annotations.TagsQuery) (annotations.FindTagsResult, error)
func (*LokiHistorianStore) Type ¶
func (r *LokiHistorianStore) Type() string
Click to show internal directories.
Click to hide internal directories.