Back to

Package evaluate

Latest Go to latest
Published: Mar 27, 2020 | License: Apache-2.0 | Module:


Package Files

type PredictiveEvaluate

type PredictiveEvaluate struct {
	HPAEvaluator hpaevaluate.Evaluater
	Store        stored.Storer
	Predicters   []prediction.Predicter

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier