evaluate

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PredictiveEvaluate

type PredictiveEvaluate struct {
	HPAEvaluator  hpaevaluate.Evaluater
	Store         stored.Storer
	Predicters    []prediction.Predicter
	SLI           []burst.ServiceLevelIndicator
	PrometheusAPI v1.API
}

PredictiveEvaluate provides a way to make predictive evaluations

func (*PredictiveEvaluate) GetEvaluation

func (p *PredictiveEvaluate) GetEvaluation(predictiveConfig *config.Config, metrics []*metric.Metric, runType string) (*cpaevaluate.Evaluation, error)

GetEvaluation takes a predictive horizontal pod autoscaler configuration and gathered metrics piped in through stdin and evaluates using these, returning a value of how many replicas a resource should have

Jump to

Keyboard shortcuts

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