Documentation ¶
Index ¶
- type MetricCache
- func (mc *MetricCache) GetAppInsightsRequest(namespace, name string) (custommetrics.MetricRequest, bool)
- func (mc *MetricCache) GetAzureExternalMetricRequest(namepace, name string) (externalmetrics.AzureExternalMetricRequest, bool)
- func (mc *MetricCache) Remove(key string)
- func (mc *MetricCache) Update(key string, metricRequest interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricCache ¶
type MetricCache struct {
// contains filtered or unexported fields
}
MetricCache holds the loaded metric request info in the system
func (*MetricCache) GetAppInsightsRequest ¶ added in v0.6.0
func (mc *MetricCache) GetAppInsightsRequest(namespace, name string) (custommetrics.MetricRequest, bool)
GetAppInsightsRequest retrieves a metric request from the cache
func (*MetricCache) GetAzureExternalMetricRequest ¶ added in v0.7.0
func (mc *MetricCache) GetAzureExternalMetricRequest(namepace, name string) (externalmetrics.AzureExternalMetricRequest, bool)
GetAzureExternalMetricRequest retrieves a metric request from the cache
func (*MetricCache) Remove ¶
func (mc *MetricCache) Remove(key string)
Remove retrieves a metric request from the cache
func (*MetricCache) Update ¶
func (mc *MetricCache) Update(key string, metricRequest interface{})
Update sets a metric request in the cache
Click to show internal directories.
Click to hide internal directories.