Documentation ¶
Overview ¶
Package object provides utilities for gathering and evaluating object metrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluate ¶
type Evaluate struct {
Calculater replicas.Calculator
}
Evaluate (object) calculates a replica count evaluation, using the tolerance and calculater provided
type Gather ¶
type Gather struct { MetricsClient metricsclient.Client PodReadyCounter podutil.PodReadyCounter }
Gather (Object) provides functionality for retrieving metrics for object metric specs.
func (*Gather) Gather ¶
func (c *Gather) Gather(metricName string, namespace string, objectRef *autoscaling.CrossVersionObjectReference, podSelector labels.Selector, metricSelector labels.Selector) (*object.Metric, error)
Gather retrieves an object metric
func (*Gather) GatherPerPod ¶
func (c *Gather) GatherPerPod(metricName string, namespace string, objectRef *autoscaling.CrossVersionObjectReference, metricSelector labels.Selector) (*object.Metric, error)
GatherPerPod retrieves an object per pod metric
Click to show internal directories.
Click to hide internal directories.