external_metrics

package
v0.15.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 125

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalMetricsClient

type ExternalMetricsClient interface {
	NamespacedMetricsGetter
}

ExternalMetricsClient is a client for fetching external metrics.

func New

func NewForConfig

func NewForConfig(c *rest.Config) (ExternalMetricsClient, error)

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) ExternalMetricsClient

type MetricsInterface

type MetricsInterface interface {
	// List fetches the metric for the given namespace that maches the given
	// metricSelector.
	List(metricName string, metricSelector labels.Selector) (*v1beta1.ExternalMetricValueList, error)
}

MetricsInterface provides access to external metrics.

type NamespacedMetricsGetter

type NamespacedMetricsGetter interface {
	NamespacedMetrics(namespace string) MetricsInterface
}

NamespacedMetricsGetter provides access to an interface for fetching metrics in a particular namespace.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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