metrics

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricValue

type MetricValue struct {
	Value int64
}

type MetricsFactory

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

func NewMetricsFactory

func NewMetricsFactory(params *common.KratosParameters) *MetricsFactory

func (*MetricsFactory) GetMetricsFetcher

func (facade *MetricsFactory) GetMetricsFetcher(scaleMetric *v1alpha1.ScaleMetric) (MetricsFetcher, error)

type MetricsFetcher

type MetricsFetcher interface {
	Fetch(scaleMetric *v1alpha1.ScaleMetric, namespace string, selector labels.Selector) ([]MetricValue, error)
}

Jump to

Keyboard shortcuts

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