analysis

package
v0.0.0-...-9d026b8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeKey

func ComputeKey(obj metricsapi.ObjectReference) string

Types

type AnalysisEvaluator

type AnalysisEvaluator struct {
	ObjectiveEvaluator IObjectiveEvaluator
}

func NewAnalysisEvaluator

func NewAnalysisEvaluator(o IObjectiveEvaluator) AnalysisEvaluator

func (*AnalysisEvaluator) Evaluate

type IAnalysisEvaluator

type IAnalysisEvaluator interface {
	Evaluate(values map[string]metricsapi.ProviderResult, ad *metricsapi.AnalysisDefinition) types.AnalysisResult
}

type IObjectiveEvaluator

type IObjectiveEvaluator interface {
	Evaluate(values map[string]metricsapi.ProviderResult, objective *metricsapi.Objective) types.ObjectiveResult
}

type IOperatorEvaluator

type IOperatorEvaluator interface {
	Evaluate(val float64, criteria *metricsapi.Operator) types.OperatorResult
}

type ITargetEvaluator

type ITargetEvaluator interface {
	Evaluate(val float64, target *metricsapi.Target) types.TargetResult
}

type ObjectiveEvaluator

type ObjectiveEvaluator struct {
	TargetEvaluator ITargetEvaluator
}

func NewObjectiveEvaluator

func NewObjectiveEvaluator(t ITargetEvaluator) ObjectiveEvaluator

func (*ObjectiveEvaluator) Evaluate

type OperatorEvaluator

type OperatorEvaluator struct{}

func (*OperatorEvaluator) Evaluate

type TargetEvaluator

type TargetEvaluator struct {
	OperatorEvaluator IOperatorEvaluator
}

func NewTargetEvaluator

func NewTargetEvaluator(o IOperatorEvaluator) TargetEvaluator

func (*TargetEvaluator) Evaluate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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