data

package
v0.0.0-...-27b3d77 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

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

func NewFileReader

func NewFileReader(path string) (*FileReader, error)

func (*FileReader) Close

func (f *FileReader) Close() error

func (*FileReader) Read

func (f *FileReader) Read() (*prompb.WriteRequest, error)

type FileWriter

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

func NewFileWriter

func NewFileWriter(path string) (*FileWriter, error)

func (*FileWriter) Close

func (f *FileWriter) Close() error

func (*FileWriter) Write

func (f *FileWriter) Write(wr *prompb.WriteRequest) (int, error)

type Metric

type Metric struct {
	Labels []*prompb.Label
	// contains filtered or unexported fields
}

func (*Metric) Next

func (m *Metric) Next(timestamp time.Time) *prompb.TimeSeries

type Set

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

func NewDataSet

func NewDataSet(opts SetOptions) *Set

func (*Set) Next

func (s *Set) Next(timestamp time.Time) *prompb.TimeSeries

type SetOptions

type SetOptions struct {
	NumMetrics  int
	Cardinality int
	Database    string
}

Jump to

Keyboard shortcuts

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