chunkcompat

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromChunks

func FromChunks(userID string, metric labels.Labels, in []client.Chunk) ([]chunk.Chunk, error)

FromChunks converts []client.Chunk to []chunk.Chunk.

func SeriesChunksToMatrix

func SeriesChunksToMatrix(from, through model.Time, serieses []client.TimeSeriesChunk) (model.Matrix, error)

SeriesChunksToMatrix converts slice of []client.TimeSeriesChunk to a model.Matrix.

func StreamsToMatrix

func StreamsToMatrix(from, through model.Time, responses []*client.QueryStreamResponse) (model.Matrix, error)

StreamsToMatrix converts a slice of QueryStreamResponse to a model.Matrix.

func ToChunks

func ToChunks(in []chunk.Chunk) ([]client.Chunk, error)

ToChunks converts []chunk.Chunk to []client.Chunk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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