Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureMetricRequest ¶
type AzureMetricRequest struct { MetricName string ResourceGroup string ResourceName string ResourceProviderNamespace string ResourceType string Aggregation string Timespan string Filter string SubscriptionID string }
func ParseAzureMetric ¶
func ParseAzureMetric(metricSelector labels.Selector, defaultSubscriptionID string) (AzureMetricRequest, error)
func (AzureMetricRequest) MetricResourceURI ¶
func (amr AzureMetricRequest) MetricResourceURI() string
func (AzureMetricRequest) Validate ¶
func (amr AzureMetricRequest) Validate() error
type AzureMetricResponse ¶
type AzureMetricResponse struct {
Total float64
}
type AzureMonitorClient ¶
type AzureMonitorClient interface {
GetAzureMetric(azMetricRequest AzureMetricRequest) (AzureMetricResponse, error)
}
AzureMonitorClient provides an interface to make requests to Azure Monitor
func NewClient ¶
func NewClient(defaultsubscriptionID string) AzureMonitorClient
type InvalidMetricRequestError ¶
type InvalidMetricRequestError struct {
// contains filtered or unexported fields
}
func (InvalidMetricRequestError) Error ¶
func (i InvalidMetricRequestError) Error() string
Click to show internal directories.
Click to hide internal directories.