client

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedMetricsClient

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

func (*CachedMetricsClient) GetCustomMetricForNode

func (c *CachedMetricsClient) GetCustomMetricForNode(ctx context.Context, name string, metricName string) (*custommetricsv1beta2.MetricValue, error)

func (*CachedMetricsClient) GetNodeMetrics

func (c *CachedMetricsClient) GetNodeMetrics(ctx context.Context, name string) (*metricsv1beta1.NodeMetrics, error)

func (*CachedMetricsClient) GetPodMetrics

func (c *CachedMetricsClient) GetPodMetrics(ctx context.Context, namespace string, name string) (*metricsv1beta1.PodMetrics, error)

type CachedPredictorClient

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

func NewCachedPredictorClient

func NewCachedPredictorClient(client kubernetes.Interface, ttl time.Duration) *CachedPredictorClient

func (*CachedPredictorClient) GetPredictorEndpoint

func (c *CachedPredictorClient) GetPredictorEndpoint(ctx context.Context, namespace string, ep *waov1beta1.EndpointTerm, predictorType predictor.PredictorType) (*waov1beta1.EndpointTerm, error)

func (*CachedPredictorClient) PredictPowerConsumption

func (c *CachedPredictorClient) PredictPowerConsumption(ctx context.Context, namespace string, ep *waov1beta1.EndpointTerm, cpuUsage, inletTemp, deltaP float64) (watt float64, err error)

Jump to

Keyboard shortcuts

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