Documentation ¶
Index ¶
- func MatrixToSeriesSet(sortSeries bool, m model.Matrix) storage.SeriesSet
- func MetricsToSeriesSet(ctx context.Context, sortSeries bool, ms []metric.Metric) storage.SeriesSet
- func NewConcreteSeriesIterator(series *ConcreteSeries) chunkenc.Iterator
- func NewConcreteSeriesSet(sortSeries bool, series []storage.Series) storage.SeriesSet
- func NewSeriesSetWithWarnings(wrapped storage.SeriesSet, warnings annotations.Annotations) storage.SeriesSet
- type ConcreteSeries
- type ConcreteSeriesSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatrixToSeriesSet ¶
MatrixToSeriesSet creates a storage.SeriesSet from a model.Matrix Series will be sorted by labels if sortSeries is set.
func MetricsToSeriesSet ¶
MetricsToSeriesSet creates a storage.SeriesSet from a []metric.Metric
func NewConcreteSeriesIterator ¶
func NewConcreteSeriesIterator(series *ConcreteSeries) chunkenc.Iterator
NewConcreteSeriesIterator instaniates an in memory chunkenc.Iterator
func NewConcreteSeriesSet ¶
NewConcreteSeriesSet instantiates an in-memory series set from a series Series will be sorted by labels if sortSeries is set.
func NewSeriesSetWithWarnings ¶ added in v1.2.0
func NewSeriesSetWithWarnings(wrapped storage.SeriesSet, warnings annotations.Annotations) storage.SeriesSet
Types ¶
type ConcreteSeries ¶
type ConcreteSeries struct {
// contains filtered or unexported fields
}
ConcreteSeries implements storage.Series.
func NewConcreteSeries ¶
func NewConcreteSeries(ls labels.Labels, samples []model.SamplePair) *ConcreteSeries
NewConcreteSeries instantiates an in memory series from a list of samples & labels
func (*ConcreteSeries) Iterator ¶
func (c *ConcreteSeries) Iterator(chunkenc.Iterator) chunkenc.Iterator
Iterator implements storage.Series
func (*ConcreteSeries) Labels ¶
func (c *ConcreteSeries) Labels() labels.Labels
Labels implements storage.Series
type ConcreteSeriesSet ¶
type ConcreteSeriesSet struct {
// contains filtered or unexported fields
}
ConcreteSeriesSet implements storage.SeriesSet.
func (*ConcreteSeriesSet) At ¶
func (c *ConcreteSeriesSet) At() storage.Series
At returns the current series and implements storage.SeriesSet.
func (*ConcreteSeriesSet) Err ¶
func (c *ConcreteSeriesSet) Err() error
Err implements storage.SeriesSet.
func (*ConcreteSeriesSet) Next ¶
func (c *ConcreteSeriesSet) Next() bool
Next iterates through a series set and implements storage.SeriesSet.
func (*ConcreteSeriesSet) Warnings ¶ added in v1.2.0
func (c *ConcreteSeriesSet) Warnings() annotations.Annotations
Warnings implements storage.SeriesSet.