Documentation ¶
Index ¶
- Constants
- Variables
- func LongFrameVersions() []data.FrameTypeVersion
- func MultiFrameVersions() []data.FrameTypeVersion
- func SortNumericMetricRef(refs []MetricRef)
- func WideFrameVersions() []data.FrameTypeVersion
- type Collection
- type CollectionRW
- type CollectionReader
- type CollectionWriter
- type LongFrame
- type MetricRef
- type MultiFrame
- type WideFrame
- func (wf *WideFrame) AddMetric(metricName string, l data.Labels, value interface{}) error
- func (wf *WideFrame) Frames() data.Frames
- func (wf *WideFrame) GetCollection(validateData bool) (Collection, error)
- func (wf *WideFrame) SetMetricMD(metricName string, l data.Labels, fc data.FieldConfig)
- func (wf *WideFrame) Validate() (isEmpty bool, errors []error)
Constants ¶
View Source
const FrameTypeNumericLong = "numeric_long"
View Source
const FrameTypeNumericWide = "numeric_wide"
Variables ¶
View Source
var LongFrameVersionLatest = LongFrameVersions()[len(LongFrameVersions())-1]
View Source
var MultiFrameVersionLatest = MultiFrameVersions()[len(MultiFrameVersions())-1]
View Source
var WideFrameVersionLatest = WideFrameVersions()[len(WideFrameVersions())-1]
Functions ¶
func LongFrameVersions ¶
func LongFrameVersions() []data.FrameTypeVersion
func MultiFrameVersions ¶
func MultiFrameVersions() []data.FrameTypeVersion
func SortNumericMetricRef ¶ added in v0.0.8
func SortNumericMetricRef(refs []MetricRef)
func WideFrameVersions ¶
func WideFrameVersions() []data.FrameTypeVersion
Types ¶
type Collection ¶
type Collection struct { RefID string Refs []MetricRef RemainderIndices []sdata.FrameFieldIndex // TODO: Currently not populated Warning error }
func (Collection) NoData ¶ added in v0.0.5
func (c Collection) NoData() bool
type CollectionRW ¶
type CollectionRW interface { CollectionWriter CollectionReader }
type CollectionReader ¶
type CollectionReader interface { GetCollection(validateData bool) (Collection, error) Frames() data.Frames }
func CollectionReaderFromFrames ¶
func CollectionReaderFromFrames(frames []*data.Frame) (CollectionReader, error)
type CollectionWriter ¶
type LongFrame ¶
func NewLongFrame ¶
func NewLongFrame(refID string, v data.FrameTypeVersion) (*LongFrame, error)
func (*LongFrame) GetCollection ¶
func (lf *LongFrame) GetCollection(validateData bool) (Collection, error)
type MetricRef ¶
func (MetricRef) GetMetricName ¶
type MultiFrame ¶
func NewMultiFrame ¶
func NewMultiFrame(refID string, v data.FrameTypeVersion) (*MultiFrame, error)
func (*MultiFrame) AddMetric ¶
func (mf *MultiFrame) AddMetric(metricName string, l data.Labels, value interface{}) error
func (*MultiFrame) Frames ¶
func (mf *MultiFrame) Frames() data.Frames
func (*MultiFrame) GetCollection ¶
func (mf *MultiFrame) GetCollection(validateData bool) (Collection, error)
func (*MultiFrame) SetMetricMD ¶
func (mf *MultiFrame) SetMetricMD(metricName string, l data.Labels, fc data.FieldConfig)
type WideFrame ¶
func NewWideFrame ¶
func NewWideFrame(refID string, v data.FrameTypeVersion) (*WideFrame, error)
func (*WideFrame) GetCollection ¶
func (wf *WideFrame) GetCollection(validateData bool) (Collection, error)
func (*WideFrame) SetMetricMD ¶
Click to show internal directories.
Click to hide internal directories.