object

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluate

type Evaluate struct {
	Calculater calculate.Calculater
	Tolerance  float64
}

Evaluate (object) calculates a replica count evaluation, using the tolerance and calculater provided

func (*Evaluate) GetEvaluation

func (e *Evaluate) GetEvaluation(currentReplicas int32, gatheredMetric *metric.Metric) (*evaluate.Evaluation, error)

GetEvaluation calculates an evaluation based on the metric provided and the current number of replicas

type Evaluator

type Evaluator interface {
	GetEvaluation(currentReplicas int32, gatheredMetric *metric.Metric) (*evaluate.Evaluation, error)
}

Evaluator (object) produces an evaluation based on an object metric provided

Jump to

Keyboard shortcuts

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