azureMetricClient

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureMetricClient

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

AzureMetricClient is used to make requests to Azure Monitor

func NewAzureMetricClient

func NewAzureMetricClient() AzureMetricClient

NewAzureMetricClient creates a client for making requests to Azure Monitor

func (AzureMetricClient) GetAzureMetric

func (c AzureMetricClient) GetAzureMetric(metricSelector labels.Selector) (external_metrics.ExternalMetricValue, error)

GetAzureMetric calls Azure Monitor endpoint and returns a metric based on label selectors

func (AzureMetricClient) GetCustomMetric added in v0.3.0

func (c AzureMetricClient) GetCustomMetric(groupResource schema.GroupResource, namespace string, selector labels.Selector, metricName string) (int64, error)

GetCustomMetric calls to Application Insights to retrieve the value of the metric requested

Jump to

Keyboard shortcuts

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