valkey

package
v0.0.6-0...-1a318ba Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatasource

func NewDatasource() datasource.ServeOpts

NewDatasource returns datasource.ServeOpts.

Types

type Query

type Query struct {
	Expr         string       `json:"expr"`
	Format       TargetFormat `json:"format"`
	LegendFormat string       `json:"legendFormat"`
	Options      QueryOptions `json:"options"`
}

Query is a single valkey query (target)

func DefaultQuery

func DefaultQuery() Query

type QueryOptions

type QueryOptions struct {
	RateConversion            bool `json:"rateConversion"`
	TimeUtilizationConversion bool `json:"timeUtilizationConversion"`
}

QueryOptions are optional query options

type TargetFormat

type TargetFormat string
const (
	TimeSeries TargetFormat = "time_series"
	Heatmap    TargetFormat = "heatmap"
)

Directories

Path Synopsis
api
test

Jump to

Keyboard shortcuts

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