Documentation
¶
Overview ¶
Package burst provides burst-awareness capability for the Predictive Horizontal Pod Autoscaler
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSLIEvaluation ¶
func GetSLIEvaluation(predictiveConfig *config.Config, slis []ServiceLevelIndicator, prometheusAPI v1.API) (int32, error)
GetSLIEvaluation returns the target prediction for the burst-aware capability by service level indicator
Types ¶
type ServiceLevelIndicator ¶
type ServiceLevelIndicator struct { Type string Name string CurrentValue float64 ObjectiveValue float64 ReplicaOffsetOnViolation int32 }
ServiceLevelIndicator is key value pair of a service level indicator and its objective value (SLO)
func SetSLIObjective ¶
func SetSLIObjective(serviceLevelObjective []*config.SLO) []ServiceLevelIndicator
SetSLIObjective sets the objective value for the service level indicator
Click to show internal directories.
Click to hide internal directories.