series

package
v1.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatrixToSeriesSet

func MatrixToSeriesSet(m model.Matrix) storage.SeriesSet

MatrixToSeriesSet creates a storage.SeriesSet from a model.Matrix Series will be sorted by labels.

func MetricsToSeriesSet

func MetricsToSeriesSet(ms []metric.Metric) storage.SeriesSet

MetricsToSeriesSet creates a storage.SeriesSet from a []metric.Metric

func NewConcreteSeriesIterator

func NewConcreteSeriesIterator(series *ConcreteSeries) storage.SeriesIterator

NewConcreteSeriesIterator instaniates an in memory storage.SeriesIterator

func NewConcreteSeriesSet

func NewConcreteSeriesSet(series []storage.Series) storage.SeriesSet

NewConcreteSeriesSet instantiates an in-memory series set from a series Series will be sorted by labels.

func NewDeletedSeries added in v1.0.0

func NewDeletedSeries(series storage.Series, deletedIntervals []model.Interval) storage.Series

func NewDeletedSeriesIterator added in v1.0.0

func NewDeletedSeriesIterator(itr storage.SeriesIterator, deletedIntervals []model.Interval) storage.SeriesIterator

func NewDeletedSeriesSet added in v1.0.0

func NewDeletedSeriesSet(seriesSet storage.SeriesSet, tombstones *purger.TombstonesSet, queryInterval model.Interval) storage.SeriesSet

func NewEmptySeries added in v1.0.0

func NewEmptySeries(labels labels.Labels) storage.Series

func NewEmptySeriesIterator added in v1.0.0

func NewEmptySeriesIterator() storage.SeriesIterator

func NewEmptySeriesSet added in v1.1.0

func NewEmptySeriesSet() storage.SeriesSet

NewEmptySeriesSet returns a new series set that contains no series.

func NewErrIterator

func NewErrIterator(err error) storage.SeriesIterator

NewErrIterator instantiates an errIterator

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() storage.SeriesIterator

Iterator impls storage.Series

func (*ConcreteSeries) Labels

func (c *ConcreteSeries) Labels() labels.Labels

Labels impls storage.Series

type ConcreteSeriesSet

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

ConcreteSeriesSet implements storage.SeriesSet.

func (*ConcreteSeriesSet) At

At returns the current series and impls storage.SeriesSet

func (*ConcreteSeriesSet) Err

func (c *ConcreteSeriesSet) Err() error

Err impls storage.SeriesSet

func (*ConcreteSeriesSet) Next

func (c *ConcreteSeriesSet) Next() bool

Next iterates through a series set and impls storage.SeriesSet

type DeletedSeries added in v1.0.0

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

func (DeletedSeries) Iterator added in v1.0.0

func (d DeletedSeries) Iterator() storage.SeriesIterator

func (DeletedSeries) Labels added in v1.0.0

func (d DeletedSeries) Labels() labels.Labels

type DeletedSeriesIterator added in v1.0.0

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

func (DeletedSeriesIterator) At added in v1.0.0

func (d DeletedSeriesIterator) At() (t int64, v float64)

func (DeletedSeriesIterator) Err added in v1.0.0

func (d DeletedSeriesIterator) Err() error

func (DeletedSeriesIterator) Next added in v1.0.0

func (d DeletedSeriesIterator) Next() bool

func (DeletedSeriesIterator) Seek added in v1.0.0

func (d DeletedSeriesIterator) Seek(t int64) bool

type DeletedSeriesSet added in v1.0.0

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

func (DeletedSeriesSet) At added in v1.0.0

func (DeletedSeriesSet) Err added in v1.0.0

func (d DeletedSeriesSet) Err() error

func (DeletedSeriesSet) Next added in v1.0.0

func (d DeletedSeriesSet) Next() bool

Jump to

Keyboard shortcuts

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