(hash uint64, s *gaugeSeries, value float64, operation string)
| 108 | } |
| 109 | |
| 110 | func (g *gauge) updateSeriesValue(hash uint64, s *gaugeSeries, value float64, operation string) { |
| 111 | if operation == add { |
| 112 | s.value.Add(value) |
| 113 | } else { |
| 114 | s.value.Store(value) |
| 115 | } |
| 116 | s.lastUpdated.Store(time.Now().UnixMilli()) |
| 117 | g.lifecycler.OnUpdate(hash, 1) |
| 118 | } |
| 119 | |
| 120 | func (g *gauge) name() string { |
| 121 | return g.metricName |
no test coverage detected