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

Method ChunksCount

pkg/ingester/client/custom.go:13–23  ·  view source on GitHub ↗

ChunksCount returns the number of chunks in response.

()

Source from the content-addressed store, hash-verified

11
12// ChunksCount returns the number of chunks in response.
13func (m *QueryStreamResponse) ChunksCount() int {
14 if len(m.Chunkseries) == 0 {
15 return 0
16 }
17
18 count := 0
19 for _, entry := range m.Chunkseries {
20 count += len(entry.Chunks)
21 }
22 return count
23}
24
25// ChunksSize returns the size of all chunks in the response.
26func (m *QueryStreamResponse) ChunksSize() int {

Callers 1

queryIngesterStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected