Documentation ¶
Index ¶
- type CustomMetricsProvider
- func (c *CustomMetricsProvider) GetMetricByName(ctx context.Context, name types.NamespacedName, info provider.CustomMetricInfo, ...) (*custom_metrics.MetricValue, error)
- func (c *CustomMetricsProvider) GetMetricBySelector(ctx context.Context, namespace string, selector labels.Selector, ...) (*custom_metrics.MetricValueList, error)
- func (c *CustomMetricsProvider) ListAllMetrics() []provider.CustomMetricInfo
- func (c *CustomMetricsProvider) RunUntil(stopChan <-chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomMetricsProvider ¶
type CustomMetricsProvider struct {
// contains filtered or unexported fields
}
func NewCustomMetricsProvider ¶
func NewCustomMetricsProvider( federatedInformerManager informermanager.FederatedInformerManager, updateInterval time.Duration, logger klog.Logger, ) *CustomMetricsProvider
func (*CustomMetricsProvider) GetMetricByName ¶
func (c *CustomMetricsProvider) GetMetricByName( ctx context.Context, name types.NamespacedName, info provider.CustomMetricInfo, metricSelector labels.Selector, ) (*custom_metrics.MetricValue, error)
func (*CustomMetricsProvider) GetMetricBySelector ¶
func (c *CustomMetricsProvider) GetMetricBySelector( ctx context.Context, namespace string, selector labels.Selector, info provider.CustomMetricInfo, metricSelector labels.Selector, ) (*custom_metrics.MetricValueList, error)
func (*CustomMetricsProvider) ListAllMetrics ¶
func (c *CustomMetricsProvider) ListAllMetrics() []provider.CustomMetricInfo
func (*CustomMetricsProvider) RunUntil ¶
func (c *CustomMetricsProvider) RunUntil(stopChan <-chan struct{})
Click to show internal directories.
Click to hide internal directories.