summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
5bfa60a)
Change-Id: I950b04e2c96e9ae9657ad86414d15ed3d52162ce
Signed-off-by: Juha Hyttinen <juha.hyttinen@nokia.com>
+func (met *MetricGroupsCache) CGet(metric string) Counter {
+ met.RLock()
+ defer met.RUnlock()
+ return met.counters[metric]
+}
+
func (met *MetricGroupsCache) CInc(metric string) {
met.RLock()
defer met.RUnlock()
func (met *MetricGroupsCache) CInc(metric string) {
met.RLock()
defer met.RUnlock()
+func (met *MetricGroupsCache) GGet(metric string) Gauge {
+ met.RLock()
+ defer met.RUnlock()
+ return met.gauges[metric]
+}
+
func (met *MetricGroupsCache) GSet(metric string, val float64) {
met.RLock()
defer met.RUnlock()
func (met *MetricGroupsCache) GSet(metric string, val float64) {
met.RLock()
defer met.RUnlock()