record

package
v6.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelName = "__name__"
)

Variables

This section is empty.

Functions

func ConvertToTimeSeries

func ConvertToTimeSeries(value model.Value, rule *models.RecordingRule) (lst []prompb.TimeSeries)

Types

type RecordRuleContext

type RecordRuleContext struct {
	// contains filtered or unexported fields
}

func NewRecordRuleContext

func NewRecordRuleContext(rule *models.RecordingRule, datasourceId int64, promClients *prom.PromClientMap, writers *writer.WritersType, stats *astats.Stats) *RecordRuleContext

func (*RecordRuleContext) Eval

func (rrc *RecordRuleContext) Eval()

func (*RecordRuleContext) Hash

func (rrc *RecordRuleContext) Hash() string

func (*RecordRuleContext) Key

func (rrc *RecordRuleContext) Key() string

func (*RecordRuleContext) Prepare

func (rrc *RecordRuleContext) Prepare()

func (*RecordRuleContext) Start

func (rrc *RecordRuleContext) Start()

func (*RecordRuleContext) Stop

func (rrc *RecordRuleContext) Stop()

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(aconf aconf.Alert, rrc *memsto.RecordingRuleCacheType, promClients *prom.PromClientMap, writers *writer.WritersType, stats *astats.Stats) *Scheduler

func (*Scheduler) LoopSyncRules

func (s *Scheduler) LoopSyncRules(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL