mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-19 02:29:16 -05:00
tsdb/head.go: add start timestamp to sample type used in tests
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
a00c0d6a66
commit
f616689f09
1 changed files with 4 additions and 4 deletions
|
|
@ -2101,20 +2101,20 @@ func (s *stripeSeries) postCreation(lset labels.Labels) {
|
|||
}
|
||||
|
||||
type sample struct {
|
||||
st int64
|
||||
t int64
|
||||
f float64
|
||||
h *histogram.Histogram
|
||||
fh *histogram.FloatHistogram
|
||||
}
|
||||
|
||||
func newSample(t int64, v float64, h *histogram.Histogram, fh *histogram.FloatHistogram) chunks.Sample {
|
||||
return sample{t, v, h, fh}
|
||||
func newSample(st, t int64, v float64, h *histogram.Histogram, fh *histogram.FloatHistogram) chunks.Sample {
|
||||
return sample{st, t, v, h, fh}
|
||||
}
|
||||
|
||||
func (s sample) T() int64 { return s.t }
|
||||
|
||||
// TODO(krajorama): implement ST.
|
||||
func (sample) ST() int64 { return 0 }
|
||||
func (s sample) ST() int64 { return s.st }
|
||||
func (s sample) F() float64 { return s.f }
|
||||
func (s sample) H() *histogram.Histogram { return s.h }
|
||||
func (s sample) FH() *histogram.FloatHistogram { return s.fh }
|
||||
|
|
|
|||
Loading…
Reference in a new issue