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) (float64, error)
GetCustomMetric calls to Application Insights to retrieve the value of the metric requested
Click to show internal directories.
Click to hide internal directories.