external_metrics

package
v0.26.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 8 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