MCPcopy Index your code
hub / github.com/cortexproject/cortex / createStreamResponse

Function createStreamResponse

integration/grpc_server_test.go:245–260  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

243}
244
245func createStreamResponse(i int) *ingester_client.QueryStreamResponse {
246 return &ingester_client.QueryStreamResponse{Chunkseries: []ingester_client.TimeSeriesChunk{
247 {
248 FromIngesterId: strconv.Itoa(i),
249 Labels: createLabels(i),
250 Chunks: []ingester_client.Chunk{
251 {
252 StartTimestampMs: int64(i),
253 EndTimestampMs: int64(i),
254 Encoding: int32(i),
255 Data: []byte(strconv.Itoa(i)),
256 },
257 },
258 },
259 }}
260}
261
262func createRequest(i int) *cortexpb.WriteRequest {
263 labels := createLabels(i)

Callers 2

QueryStreamMethod · 0.85
TestConcurrentGrpcCallsFunction · 0.85

Calls 1

createLabelsFunction · 0.85

Tested by

no test coverage detected