MCPcopy Create free account
hub / github.com/cortexproject/cortex / GetTimestampMs

Method GetTimestampMs

pkg/querier/tripperware/custom.go:3–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1package tripperware
2
3func (m *Sample) GetTimestampMs() int64 {
4 if m != nil {
5 if m.Sample != nil {
6 return m.Sample.TimestampMs
7 } else if m.Histogram != nil {
8 return m.Histogram.TimestampMs
9 }
10 }
11 return 0
12}

Callers 4

vectorMergeFunction · 0.45
statsMergeFunction · 0.45
mergeSampleStreamsFunction · 0.45
sliceHistogramsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected