metrics: k8s.io/metrics/pkg/client/external_metrics Index | Files | Directories

package external_metrics

import "k8s.io/metrics/pkg/client/external_metrics"

Index

Package Files

client.go interfaces.go

type ExternalMetricsClient Uses

type ExternalMetricsClient interface {
    NamespacedMetricsGetter
}

ExternalMetricsClient is a client for fetching external metrics.

func New Uses

func New(client rest.Interface) ExternalMetricsClient

func NewForConfig Uses

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

func NewForConfigOrDie Uses

func NewForConfigOrDie(c *rest.Config) ExternalMetricsClient

type MetricsInterface Uses

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 Uses

type NamespacedMetricsGetter interface {
    NamespacedMetrics(namespace string) MetricsInterface
}

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

Directories

PathSynopsis
fake

Package external_metrics imports 7 packages (graph) and is imported by 40 packages. Updated 2019-07-21. Refresh now. Tools for package owners.