numeric

package
v0.146.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FrameTypeNumericLong = "numeric_long"
View Source
const FrameTypeNumericMulti = "numeric_multi"
View Source
const FrameTypeNumericWide = "numeric_wide"

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	CollectionWriter
	CollectionReader
}

type CollectionReader

type CollectionReader interface {
	GetMetricRefs(validateData bool) (refs []MetricRef, ignoredFieldIndices []sdata.FrameFieldIndex, err error)
}

type CollectionWriter

type CollectionWriter interface {
	AddMetric(metricName string, l data.Labels, value interface{}) error
	SetMetricMD(metricName string, l data.Labels, fc data.FieldConfig)
}

type LongFrame

type LongFrame struct {
	*data.Frame
}

func NewLongFrame

func NewLongFrame() *LongFrame

func (*LongFrame) GetMetricRefs

func (lf *LongFrame) GetMetricRefs(validateData bool) ([]MetricRef, []sdata.FrameFieldIndex, error)

type MetricRef

type MetricRef struct {
	ValueField *data.Field
}

func (MetricRef) GetLabels

func (n MetricRef) GetLabels() data.Labels

func (MetricRef) GetMetricName

func (n MetricRef) GetMetricName() string

type MultiFrame

type MultiFrame []*data.Frame

func NewMultiFrame

func NewMultiFrame() *MultiFrame

func (*MultiFrame) AddMetric

func (mf *MultiFrame) AddMetric(metricName string, l data.Labels, value interface{}) error

func (*MultiFrame) GetMetricRefs

func (mf *MultiFrame) GetMetricRefs(validateData bool) ([]MetricRef, []sdata.FrameFieldIndex, error)

func (*MultiFrame) SetMetricMD

func (mf *MultiFrame) SetMetricMD(metricName string, l data.Labels, fc data.FieldConfig)

type WideFrame

type WideFrame struct {
	*data.Frame
}

func NewWideFrame

func NewWideFrame() *WideFrame

func (*WideFrame) AddMetric

func (wf *WideFrame) AddMetric(metricName string, l data.Labels, value interface{}) error

func (*WideFrame) GetMetricRefs

func (wf *WideFrame) GetMetricRefs(validateData bool) ([]MetricRef, []sdata.FrameFieldIndex, error)

func (*WideFrame) SetMetricMD

func (wf *WideFrame) SetMetricMD(metricName string, l data.Labels, fc data.FieldConfig)

func (*WideFrame) Validate

func (wf *WideFrame) Validate() (isEmpty bool, errors []error)

Jump to

Keyboard shortcuts

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