prometheus

package
v0.0.0-...-7eda018 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrometheusAPI

func NewPrometheusAPI(v1 v1.API) *prometheusApi

Types

type MockPrometheusAPI

type MockPrometheusAPI struct {
	mock.Mock
}

MockPrometheusAPI is an autogenerated mock type for the PrometheusAPI type

func (*MockPrometheusAPI) Query

func (_m *MockPrometheusAPI) Query(ctx context.Context, query string, ts time.Time) (model.Value, v1.Warnings, error)

Query provides a mock function with given fields: ctx, query, ts

type PrometheusAPI

type PrometheusAPI interface {
	Query(ctx context.Context, query string, ts time.Time) (model.Value, v1.Warnings, error)
}

func InitPrometheus

func InitPrometheus(ctx context.Context, url string) (PrometheusAPI, error)

Jump to

Keyboard shortcuts

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