conv

package
v5.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelName = "__name__"
)

Variables

This section is empty.

Functions

func ConvertToTimeSeries added in v5.9.5

func ConvertToTimeSeries(value model.Value, rule *models.RecordingRule) (lst []*prompb.TimeSeries)

Types

type Vector

type Vector struct {
	Key       string       `json:"key"`
	Labels    model.Metric `json:"labels"`
	Timestamp int64        `json:"timestamp"`
	Value     float64      `json:"value"`
}

func ConvertVectors

func ConvertVectors(value model.Value) (lst []Vector)

func (*Vector) ReadableValue added in v5.14.5

func (v *Vector) ReadableValue() string

Jump to

Keyboard shortcuts

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