Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gather ¶
type Gather struct { MetricsClient metricsclient.MetricsClient PodReadyCounter podutil.PodReadyCounter }
Gather (Object) provides functionality for retrieving metrics for object metric specs.
func (*Gather) GetMetric ¶
func (c *Gather) GetMetric(metricName string, namespace string, objectRef *autoscaling.CrossVersionObjectReference, selector labels.Selector, metricSelector labels.Selector) (*Metric, error)
GetMetric retrieves an object metric
func (*Gather) GetPerPodMetric ¶
func (c *Gather) GetPerPodMetric(metricName string, namespace string, objectRef *autoscaling.CrossVersionObjectReference, metricSelector labels.Selector) (*Metric, error)
GetPerPodMetric retrieves an object per pod metric
type Gatherer ¶
type Gatherer interface { GetMetric(metricName string, namespace string, objectRef *autoscaling.CrossVersionObjectReference, selector labels.Selector, metricSelector labels.Selector) (*Metric, error) GetPerPodMetric(metricName string, namespace string, objectRef *autoscaling.CrossVersionObjectReference, metricSelector labels.Selector) (*Metric, error) }
Gatherer (Object) allows retrieval of object metrics.
Click to show internal directories.
Click to hide internal directories.