provider

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeProvider

func NewFakeProvider(client dynamic.Interface, mapper apimeta.RESTMapper, clusterStateCache clusterstatecache.Cache) provider.ExternalMetricsProvider

NewFakeProvider returns an instance of clusterMetricsProvider

Types

type CustomMetricResource

type CustomMetricResource struct {
	provider.CustomMetricInfo
	types.NamespacedName
}

CustomMetricResource wraps provider.CustomMetricInfo in a struct which stores the Name and Namespace of the resource So that we can accurately store and retrieve the metric as if this were an actual metrics server.

type ExternalMetric

type ExternalMetric struct {
	Value external_metrics.ExternalMetricValue
	// contains filtered or unexported fields
}

externalMetric provides examples for metrics which would otherwise be reported from an external source TODO (damemi): add dynamic external metrics instead of just hardcoded examples

Jump to

Keyboard shortcuts

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