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

Function makeWriteRequestTimeseriesNHCB

pkg/distributor/distributor_test.go:3509–3516  ·  view source on GitHub ↗
(labels []cortexpb.LabelAdapter, ts, value int64)

Source from the content-addressed store, hash-verified

3507}
3508
3509func makeWriteRequestTimeseriesNHCB(labels []cortexpb.LabelAdapter, ts, value int64) cortexpb.PreallocTimeseries {
3510 return cortexpb.PreallocTimeseries{
3511 TimeSeries: &cortexpb.TimeSeries{
3512 Labels: labels,
3513 Histograms: []cortexpb.WrappedHistogram{cortexpb.WrapHistogram(cortexpb.HistogramToHistogramProto(ts, tsdbutil.GenerateTestCustomBucketsHistogram(value)))},
3514 },
3515 }
3516}
3517
3518func makeWriteRequestHA(samples int, replica, cluster string, histogram bool) *cortexpb.WriteRequest {
3519 request := &cortexpb.WriteRequest{}

Callers 1

makeWriteRequestWithNHCBFunction · 0.85

Calls 2

WrapHistogramFunction · 0.92

Tested by

no test coverage detected