prometheus

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package prometheus is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrometheusClient

func NewPrometheusClient(url string) (clients.MetricsClient, error)

Types

type MockAPI added in v0.2.1

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface.

func NewMockAPI added in v0.2.1

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) AlertManagers added in v0.2.1

func (m *MockAPI) AlertManagers(arg0 context.Context) (v1.AlertManagersResult, error)

AlertManagers mocks base method.

func (*MockAPI) Alerts added in v0.2.1

func (m *MockAPI) Alerts(arg0 context.Context) (v1.AlertsResult, error)

Alerts mocks base method.

func (*MockAPI) Buildinfo added in v0.2.1

func (m *MockAPI) Buildinfo(arg0 context.Context) (v1.BuildinfoResult, error)

Buildinfo mocks base method.

func (*MockAPI) CleanTombstones added in v0.2.1

func (m *MockAPI) CleanTombstones(arg0 context.Context) error

CleanTombstones mocks base method.

func (*MockAPI) Config added in v0.2.1

func (m *MockAPI) Config(arg0 context.Context) (v1.ConfigResult, error)

Config mocks base method.

func (*MockAPI) DeleteSeries added in v0.2.1

func (m *MockAPI) DeleteSeries(arg0 context.Context, arg1 []string, arg2, arg3 time.Time) error

DeleteSeries mocks base method.

func (*MockAPI) EXPECT added in v0.2.1

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) Flags added in v0.2.1

func (m *MockAPI) Flags(arg0 context.Context) (v1.FlagsResult, error)

Flags mocks base method.

func (*MockAPI) LabelNames added in v0.2.1

func (m *MockAPI) LabelNames(arg0 context.Context, arg1 []string, arg2, arg3 time.Time) ([]string, v1.Warnings, error)

LabelNames mocks base method.

func (*MockAPI) LabelValues added in v0.2.1

func (m *MockAPI) LabelValues(arg0 context.Context, arg1 string, arg2 []string, arg3, arg4 time.Time) (model.LabelValues, v1.Warnings, error)

LabelValues mocks base method.

func (*MockAPI) Metadata added in v0.2.1

func (m *MockAPI) Metadata(arg0 context.Context, arg1, arg2 string) (map[string][]v1.Metadata, error)

Metadata mocks base method.

func (*MockAPI) Query added in v0.2.1

func (m *MockAPI) Query(arg0 context.Context, arg1 string, arg2 time.Time, arg3 ...v1.Option) (model.Value, v1.Warnings, error)

Query mocks base method.

func (*MockAPI) QueryExemplars added in v0.2.1

func (m *MockAPI) QueryExemplars(arg0 context.Context, arg1 string, arg2, arg3 time.Time) ([]v1.ExemplarQueryResult, error)

QueryExemplars mocks base method.

func (*MockAPI) QueryRange added in v0.2.1

func (m *MockAPI) QueryRange(arg0 context.Context, arg1 string, arg2 v1.Range, arg3 ...v1.Option) (model.Value, v1.Warnings, error)

QueryRange mocks base method.

func (*MockAPI) Rules added in v0.2.1

func (m *MockAPI) Rules(arg0 context.Context) (v1.RulesResult, error)

Rules mocks base method.

func (*MockAPI) Runtimeinfo added in v0.2.1

func (m *MockAPI) Runtimeinfo(arg0 context.Context) (v1.RuntimeinfoResult, error)

Runtimeinfo mocks base method.

func (*MockAPI) Series added in v0.2.1

func (m *MockAPI) Series(arg0 context.Context, arg1 []string, arg2, arg3 time.Time) ([]model.LabelSet, v1.Warnings, error)

Series mocks base method.

func (*MockAPI) Snapshot added in v0.2.1

func (m *MockAPI) Snapshot(arg0 context.Context, arg1 bool) (v1.SnapshotResult, error)

Snapshot mocks base method.

func (*MockAPI) TSDB added in v0.2.1

func (m *MockAPI) TSDB(arg0 context.Context) (v1.TSDBResult, error)

TSDB mocks base method.

func (*MockAPI) Targets added in v0.2.1

func (m *MockAPI) Targets(arg0 context.Context) (v1.TargetsResult, error)

Targets mocks base method.

func (*MockAPI) TargetsMetadata added in v0.2.1

func (m *MockAPI) TargetsMetadata(arg0 context.Context, arg1, arg2, arg3 string) ([]v1.MetricMetadata, error)

TargetsMetadata mocks base method.

func (*MockAPI) WalReplay added in v0.2.1

func (m *MockAPI) WalReplay(arg0 context.Context) (v1.WalReplayStatus, error)

WalReplay mocks base method.

type MockAPIMockRecorder added in v0.2.1

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) AlertManagers added in v0.2.1

func (mr *MockAPIMockRecorder) AlertManagers(arg0 interface{}) *gomock.Call

AlertManagers indicates an expected call of AlertManagers.

func (*MockAPIMockRecorder) Alerts added in v0.2.1

func (mr *MockAPIMockRecorder) Alerts(arg0 interface{}) *gomock.Call

Alerts indicates an expected call of Alerts.

func (*MockAPIMockRecorder) Buildinfo added in v0.2.1

func (mr *MockAPIMockRecorder) Buildinfo(arg0 interface{}) *gomock.Call

Buildinfo indicates an expected call of Buildinfo.

func (*MockAPIMockRecorder) CleanTombstones added in v0.2.1

func (mr *MockAPIMockRecorder) CleanTombstones(arg0 interface{}) *gomock.Call

CleanTombstones indicates an expected call of CleanTombstones.

func (*MockAPIMockRecorder) Config added in v0.2.1

func (mr *MockAPIMockRecorder) Config(arg0 interface{}) *gomock.Call

Config indicates an expected call of Config.

func (*MockAPIMockRecorder) DeleteSeries added in v0.2.1

func (mr *MockAPIMockRecorder) DeleteSeries(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

DeleteSeries indicates an expected call of DeleteSeries.

func (*MockAPIMockRecorder) Flags added in v0.2.1

func (mr *MockAPIMockRecorder) Flags(arg0 interface{}) *gomock.Call

Flags indicates an expected call of Flags.

func (*MockAPIMockRecorder) LabelNames added in v0.2.1

func (mr *MockAPIMockRecorder) LabelNames(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

LabelNames indicates an expected call of LabelNames.

func (*MockAPIMockRecorder) LabelValues added in v0.2.1

func (mr *MockAPIMockRecorder) LabelValues(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

LabelValues indicates an expected call of LabelValues.

func (*MockAPIMockRecorder) Metadata added in v0.2.1

func (mr *MockAPIMockRecorder) Metadata(arg0, arg1, arg2 interface{}) *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockAPIMockRecorder) Query added in v0.2.1

func (mr *MockAPIMockRecorder) Query(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockAPIMockRecorder) QueryExemplars added in v0.2.1

func (mr *MockAPIMockRecorder) QueryExemplars(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

QueryExemplars indicates an expected call of QueryExemplars.

func (*MockAPIMockRecorder) QueryRange added in v0.2.1

func (mr *MockAPIMockRecorder) QueryRange(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

QueryRange indicates an expected call of QueryRange.

func (*MockAPIMockRecorder) Rules added in v0.2.1

func (mr *MockAPIMockRecorder) Rules(arg0 interface{}) *gomock.Call

Rules indicates an expected call of Rules.

func (*MockAPIMockRecorder) Runtimeinfo added in v0.2.1

func (mr *MockAPIMockRecorder) Runtimeinfo(arg0 interface{}) *gomock.Call

Runtimeinfo indicates an expected call of Runtimeinfo.

func (*MockAPIMockRecorder) Series added in v0.2.1

func (mr *MockAPIMockRecorder) Series(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Series indicates an expected call of Series.

func (*MockAPIMockRecorder) Snapshot added in v0.2.1

func (mr *MockAPIMockRecorder) Snapshot(arg0, arg1 interface{}) *gomock.Call

Snapshot indicates an expected call of Snapshot.

func (*MockAPIMockRecorder) TSDB added in v0.2.1

func (mr *MockAPIMockRecorder) TSDB(arg0 interface{}) *gomock.Call

TSDB indicates an expected call of TSDB.

func (*MockAPIMockRecorder) Targets added in v0.2.1

func (mr *MockAPIMockRecorder) Targets(arg0 interface{}) *gomock.Call

Targets indicates an expected call of Targets.

func (*MockAPIMockRecorder) TargetsMetadata added in v0.2.1

func (mr *MockAPIMockRecorder) TargetsMetadata(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

TargetsMetadata indicates an expected call of TargetsMetadata.

func (*MockAPIMockRecorder) WalReplay added in v0.2.1

func (mr *MockAPIMockRecorder) WalReplay(arg0 interface{}) *gomock.Call

WalReplay indicates an expected call of WalReplay.

type PrometheusClient

type PrometheusClient struct {
	// contains filtered or unexported fields
}

func (*PrometheusClient) FetchPVCsMetrics

func (c *PrometheusClient) FetchPVCsMetrics(ctx context.Context, when time.Time) (map[types.NamespacedName]*clients.PVCMetrics, error)

Jump to

Keyboard shortcuts

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