Back to godoc.org

Package evaluate

v0.5.0
Latest Go to latest
Published: Mar 27, 2020 | License: Apache-2.0 | Module: github.com/jthomperoo/predictive-horizontal-pod-autoscaler

Index

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