provider

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureProvider

func NewAzureProvider(client dynamic.Interface, mapper apimeta.RESTMapper, azMetricClient azureMetricClient.AzureMetricClient) provider.MetricsProvider

Types

type AzureProvider

type AzureProvider struct {
	// contains filtered or unexported fields
}

func (*AzureProvider) GetExternalMetric

func (p *AzureProvider) GetExternalMetric(namespace string, metricName string, metricSelector labels.Selector) (*external_metrics.ExternalMetricValueList, error)

func (*AzureProvider) GetNamespacedMetricByName

func (p *AzureProvider) GetNamespacedMetricByName(groupResource schema.GroupResource, namespace string, name string, metricName string) (*custom_metrics.MetricValue, error)

GetNamespacedMetricByName fetches a particular metric for a particular namespaced object (such as pod, deployment)

func (*AzureProvider) GetNamespacedMetricBySelector

func (p *AzureProvider) GetNamespacedMetricBySelector(groupResource schema.GroupResource, namespace string, selector labels.Selector, metricName string) (*custom_metrics.MetricValueList, error)

GetNamespacedMetricBySelector fetches a particular metric for a set of namespaced objects (such as pod, deployment) matching the given label selector.

func (*AzureProvider) GetRootScopedMetricByName

func (p *AzureProvider) GetRootScopedMetricByName(groupResource schema.GroupResource, name string, metricName string) (*custom_metrics.MetricValue, error)

GetRootScopedMetricByName fetches a particular metric for a particular root-scoped object (such as Node, PersistentVolume)

func (*AzureProvider) GetRootScopedMetricBySelector

func (p *AzureProvider) GetRootScopedMetricBySelector(groupResource schema.GroupResource, selector labels.Selector, metricName string) (*custom_metrics.MetricValueList, error)

GetRootScopedMetricBySelector fetches a particular metric for a set of root-scoped objects (such as Node, PersistentVolume) matching the given label selector.

func (*AzureProvider) ListAllExternalMetrics

func (p *AzureProvider) ListAllExternalMetrics() []provider.ExternalMetricInfo

ListAllExternalMetrics calls out to azure and builds a list of metrics that can be queried against

func (*AzureProvider) ListAllMetrics

func (p *AzureProvider) ListAllMetrics() []provider.CustomMetricInfo

ListAllMetrics provides a list of all available metrics at the current time. Note that this is not allowed to return an error, so it is reccomended that implementors cache and periodically update this list, instead of querying every time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL