Documentation ¶
Index ¶
- Variables
- type Provider
- func (p *Provider) GetMetricByName(ctx context.Context, name types.NamespacedName, info provider.CustomMetricInfo, ...) (*custom_metrics.MetricValue, error)
- func (p *Provider) GetMetricBySelector(ctx context.Context, namespace string, selector labels.Selector, ...) (*custom_metrics.MetricValueList, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MetricTTL = 60 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { defaults.DefaultCustomMetricsProvider // contains filtered or unexported fields }
func New ¶
func New(client dynamic.Interface, mapper apimeta.RESTMapper, metricStore *waometrics.Store) *Provider
func (*Provider) GetMetricByName ¶
func (p *Provider) GetMetricByName(ctx context.Context, name types.NamespacedName, info provider.CustomMetricInfo, _ labels.Selector) (*custom_metrics.MetricValue, error)
func (*Provider) GetMetricBySelector ¶
func (p *Provider) GetMetricBySelector(ctx context.Context, namespace string, selector labels.Selector, info provider.CustomMetricInfo, _ labels.Selector) (*custom_metrics.MetricValueList, error)
Click to show internal directories.
Click to hide internal directories.