Documentation ¶
Index ¶
- func ArrayContainsElement(el string, arr []string) bool
- func GetPairTriggerAndMetric(so *kedav1alpha1.ScaledObject, metric string, trigger string) (map[string]string, error)
- func HandleScalingModifiers(so *kedav1alpha1.ScaledObject, metrics []external_metrics.ExternalMetricValue, ...) []external_metrics.ExternalMetricValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayContainsElement ¶
ArrayContainsElement determines whether array 'arr' contains element 'el'
func GetPairTriggerAndMetric ¶ added in v2.13.0
func GetPairTriggerAndMetric(so *kedav1alpha1.ScaledObject, metric string, trigger string) (map[string]string, error)
GetPairTriggerAndMetric adds new pair of trigger-metric to the list for scalingModifiers formula list thats needed to map the metric value to trigger name. This is only ran if scalingModifiers.Formula is defined in SO.
func HandleScalingModifiers ¶
func HandleScalingModifiers(so *kedav1alpha1.ScaledObject, metrics []external_metrics.ExternalMetricValue, metricTriggerList map[string]string, fallbackActive bool, fallbackMetrics []external_metrics.ExternalMetricValue, cacheObj *cache.ScalersCache, log logr.Logger) []external_metrics.ExternalMetricValue
HandleScalingModifiers is the parent function for scalingModifiers structure. If the structure is defined and conditions are met, apply the formula to manipulate the metrics and return them
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.