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 ¶
func (ae *AnalysisEvaluator) Evaluate(values map[string]metricsapi.ProviderResult, ad *metricsapi.AnalysisDefinition) types.AnalysisResult
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 ¶
func (oe *ObjectiveEvaluator) Evaluate(values map[string]metricsapi.ProviderResult, obj *metricsapi.Objective) types.ObjectiveResult
type OperatorEvaluator ¶
type OperatorEvaluator struct{}
func (*OperatorEvaluator) Evaluate ¶
func (te *OperatorEvaluator) Evaluate(val float64, t *metricsapi.Operator) types.OperatorResult
type TargetEvaluator ¶
type TargetEvaluator struct {
OperatorEvaluator IOperatorEvaluator
}
func NewTargetEvaluator ¶
func NewTargetEvaluator(o IOperatorEvaluator) TargetEvaluator
func (*TargetEvaluator) Evaluate ¶
func (te *TargetEvaluator) Evaluate(val float64, t *metricsapi.Target) types.TargetResult
Source Files ¶
Click to show internal directories.
Click to hide internal directories.