MCPcopy Create free account
hub / github.com/prometheus/prometheus / updateTimestamp

Method updateTimestamp

storage/remote/queue_manager.go:2243–2252  ·  view source on GitHub ↗

updateTimestamp updates highest and lowest timestamps if the given timestamp is valid.

(timestamp int64)

Source from the content-addressed store, hash-verified

2241
2242// updateTimestamp updates highest and lowest timestamps if the given timestamp is valid.
2243func (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.
2255func (s *timeSeriesStats) recordDropped(hasSamples, hasExemplars, hasHistograms bool) {

Callers 2

buildTimeSeriesFunction · 0.45
buildV2TimeSeriesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected