Documentation ¶
Overview ¶
Package evaluate provides functionality for managing evaluating, calling external evaluation logic through shell commands with relevant data piped to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluation ¶
type Evaluation struct {
TargetReplicas int32 `json:"target_replicas"`
}
Evaluation represents a decision on how to scale a resource
type Evaluator ¶
Evaluator handles triggering the evaluation logic to decide how to scale a resource
func (*Evaluator) GetEvaluation ¶
func (e *Evaluator) GetEvaluation(resourceMetrics *metric.ResourceMetrics) (*Evaluation, error)
GetEvaluation uses the metrics provided to determine a set of evaluations
type GetEvaluationer ¶ added in v0.9.0
type GetEvaluationer interface {
GetEvaluation(resourceMetrics *metric.ResourceMetrics) (*Evaluation, error)
}
GetEvaluationer provides methods for retrieving an evaluation
Click to show internal directories.
Click to hide internal directories.