custom

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomMetricsProvider

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

func NewCustomMetricsProvider

func NewCustomMetricsProvider(
	federatedInformerManager informermanager.FederatedInformerManager,
	updateInterval time.Duration,
	logger klog.Logger,
) *CustomMetricsProvider

func (*CustomMetricsProvider) GetMetricByName

func (*CustomMetricsProvider) GetMetricBySelector

func (c *CustomMetricsProvider) GetMetricBySelector(
	ctx context.Context,
	namespace string,
	selector labels.Selector,
	info provider.CustomMetricInfo,
	metricSelector labels.Selector,
) (*custom_metrics.MetricValueList, error)

func (*CustomMetricsProvider) ListAllMetrics

func (c *CustomMetricsProvider) ListAllMetrics() []provider.CustomMetricInfo

func (*CustomMetricsProvider) RunUntil

func (c *CustomMetricsProvider) RunUntil(stopChan <-chan struct{})

Jump to

Keyboard shortcuts

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