spromths

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromethsInstance

type PromethsInstance struct {
	Api v1.API
}

func NewPromethsInstance

func NewPromethsInstance(addr string) (*PromethsInstance, error)

func NewPromethsInstanceWichApi

func NewPromethsInstanceWichApi(api v1.API) *PromethsInstance

func (*PromethsInstance) Query

func (m *PromethsInstance) Query(ctx context.Context, query string, time time.Time) (model.Value, error)

func (*PromethsInstance) QueryMatrix

func (m *PromethsInstance) QueryMatrix(ctx context.Context, query string, time time.Time) (model.Matrix, error)

func (*PromethsInstance) QueryRange

func (m *PromethsInstance) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, error)

func (*PromethsInstance) QueryRangeMatrix

func (m *PromethsInstance) QueryRangeMatrix(ctx context.Context, query string, r v1.Range) (model.Matrix, error)

func (*PromethsInstance) QueryRangeScalar

func (m *PromethsInstance) QueryRangeScalar(ctx context.Context, query string, r v1.Range) (*model.Scalar, error)

func (*PromethsInstance) QueryRangeString

func (m *PromethsInstance) QueryRangeString(ctx context.Context, query string, r v1.Range) (*model.String, error)

func (*PromethsInstance) QueryRangeVector

func (m *PromethsInstance) QueryRangeVector(ctx context.Context, query string, r v1.Range) (model.Vector, error)

func (*PromethsInstance) QueryScalar

func (m *PromethsInstance) QueryScalar(ctx context.Context, query string, time time.Time) (*model.Scalar, error)

func (*PromethsInstance) QueryString

func (m *PromethsInstance) QueryString(ctx context.Context, query string, time time.Time) (*model.String, error)

func (*PromethsInstance) QueryVector

func (m *PromethsInstance) QueryVector(ctx context.Context, query string, time time.Time) (model.Vector, error)

Jump to

Keyboard shortcuts

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