api

package
v0.0.0-...-e1e1857 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Possible values for ErrorType.
	ErrBadResponse promapiv1.ErrorType = "bad_response"
	ErrServer      promapiv1.ErrorType = "server_error"
	ErrClient      promapiv1.ErrorType = "client_error"
)

Variables

This section is empty.

Functions

func LabelNames

func LabelNames(ctx context.Context, client promapi.Client, startTime time.Time, endTime time.Time,
	cache bool) ([]string, int, promapiv1.Warnings, error)

func LabelValues

func LabelValues(ctx context.Context, client promapi.Client, label string, startTime time.Time, endTime time.Time,
	cache bool) (model.LabelValues, int, promapiv1.Warnings, error)

func Query

func Query(ctx context.Context, client promapi.Client, query string, ts time.Time,
	cache bool) (model.Value, int, promapiv1.Warnings, error)

func QueryRange

func QueryRange(ctx context.Context, client promapi.Client, query string, r promapiv1.Range,
	cache bool) (model.Value, int, promapiv1.Warnings, error)

func Series

func Series(ctx context.Context, client promapi.Client, matches []string, startTime time.Time, endTime time.Time,
	cache bool) ([]model.LabelSet, int, promapiv1.Warnings, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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