exemplar

package
v0.0.0-test.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framer

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

func NewFramer

func NewFramer(sampler Sampler, labelTracker LabelTracker) *Framer

func (*Framer) AddFrame

func (f *Framer) AddFrame(frame *data.Frame)

func (*Framer) Frames

func (f *Framer) Frames() (data.Frames, error)

func (*Framer) SetMeta

func (f *Framer) SetMeta(meta *data.FrameMeta)

func (*Framer) SetRefID

func (f *Framer) SetRefID(refID string)

type LabelTracker

type LabelTracker interface {
	Add(labels map[string]string)
	AddFields(fields []*data.Field)
	GetNames() []string
}

func NewLabelTracker

func NewLabelTracker() LabelTracker

type NoOpSampler

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

func (*NoOpSampler) Add

func (e *NoOpSampler) Add(ex models.Exemplar)

func (*NoOpSampler) Reset

func (e *NoOpSampler) Reset()

func (*NoOpSampler) Sample

func (e *NoOpSampler) Sample() []models.Exemplar

func (*NoOpSampler) SetStep

func (e *NoOpSampler) SetStep(time.Duration)

type Sampler

type Sampler interface {
	Add(models.Exemplar)
	SetStep(time.Duration)
	Sample() []models.Exemplar
	Reset()
}

func NewNoOpSampler

func NewNoOpSampler() Sampler

func NewStandardDeviationSampler

func NewStandardDeviationSampler() Sampler

type StandardDeviationSampler

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

func (*StandardDeviationSampler) Add

func (*StandardDeviationSampler) Reset

func (e *StandardDeviationSampler) Reset()

func (*StandardDeviationSampler) Sample

func (*StandardDeviationSampler) SetStep

func (e *StandardDeviationSampler) SetStep(step time.Duration)

Jump to

Keyboard shortcuts

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