Method
updateSeries
modules/generator/registry/counter.go:117–121
· modules/generator/registry/counter.go::counter.updateSeries
(hash uint64, s *counterSeries, value float64)
Source from the content-addressed store, hash-verified
| 115 | } |
| 116 | |
| 117 | func (c *counter) updateSeries(hash uint64, s *counterSeries, value float64) { |
| 118 | s.value.Add(value) |
| 119 | s.lastUpdated.Store(time.Now().UnixMilli()) |
| 120 | c.lifecycler.OnUpdate(hash, 1) |
| 121 | } |
| 122 | |
| 123 | func (c *counter) name() string { |
| 124 | return c.metricName |
Tested by
no test coverage detected