provider

package
v0.0.0-...-3acc49a Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResponseTimeMetricsProvider

func NewResponseTimeMetricsProvider(client dynamic.Interface, mapper apimeta.RESTMapper, informers informers.Informers, stopCh <-chan struct{}) provider.CustomMetricsProvider

NewResponseTimeMetricsProvider returns an instance of responseTimeMetricsProvider

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 Metrics

type Metrics struct {
	ResponseTime *resource.Quantity
	RequestCount *resource.Quantity
	Throughput   *resource.Quantity
}

Metrics is the wrapper for Kubernetes resource metrics

Jump to

Keyboard shortcuts

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