Documentation ¶
Index ¶
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) GetExternalMetric ¶ added in v0.10.0
func (mc *MetricCache) GetExternalMetric(namespace, name string) (v1alpha1.ExternalMetric, bool)
GetExternalMetric retrieves an external metric request from the cache
func (*MetricCache) ListMetricNames ¶
func (mc *MetricCache) ListMetricNames() []string
ListMetricNames retrieves a list of metric names from the cache.
func (*MetricCache) Remove ¶
func (mc *MetricCache) Remove(key string)
Remove removes a metric request from the cache
func (*MetricCache) Update ¶
func (mc *MetricCache) Update(key string, name string, metricRequest interface{})
Update sets a metric request in the cache
Click to show internal directories.
Click to hide internal directories.