metrics

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalMetricsManager

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

func GetExternalMetricsManager

func GetExternalMetricsManager() *ExternalMetricsManager

func (*ExternalMetricsManager) AddMetricsSource

func (em *ExternalMetricsManager) AddMetricsSource(m MetricSource)

func (*ExternalMetricsManager) GetExternalMetrics

func (em *ExternalMetricsManager) GetExternalMetrics(namespace string, requirements labels.Requirements, info p.ExternalMetricInfo) ([]external_metrics.ExternalMetricValue, error)

func (*ExternalMetricsManager) GetMetricsInfoList

func (em *ExternalMetricsManager) GetMetricsInfoList() []p.ExternalMetricInfo

type MetricSource

type MetricSource interface {
	GetExternalMetricInfoList() []p.ExternalMetricInfo
	GetExternalMetric(info p.ExternalMetricInfo, namespace string, requirements labels.Requirements) ([]external_metrics.ExternalMetricValue, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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