metriccache

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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 NewMetricCache

func NewMetricCache() *MetricCache

NewMetricCache creates the cache

func (*MetricCache) GetNewRelicQuery

func (mc *MetricCache) GetNewRelicQuery(namepace, name string) (string, bool)

GetNewRelicQuery retrieves the query 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

Jump to

Keyboard shortcuts

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