updateTimestamp updates highest and lowest timestamps if the given timestamp is valid.
(timestamp int64)
| 2241 | |
| 2242 | // updateTimestamp updates highest and lowest timestamps if the given timestamp is valid. |
| 2243 | func (s *timeSeriesStats) updateTimestamp(timestamp int64) { |
| 2244 | if timestamp > 0 { |
| 2245 | if timestamp > s.highest { |
| 2246 | s.highest = timestamp |
| 2247 | } |
| 2248 | if timestamp < s.lowest { |
| 2249 | s.lowest = timestamp |
| 2250 | } |
| 2251 | } |
| 2252 | } |
| 2253 | |
| 2254 | // recordDropped increments the dropped counters based on what data exists. |
| 2255 | func (s *timeSeriesStats) recordDropped(hasSamples, hasExemplars, hasHistograms bool) { |
no outgoing calls
no test coverage detected