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

Method GetBlocks

pkg/querier/blocks_store_queryable.go:88–88  ·  view source on GitHub ↗

GetBlocks returns known blocks for userID containing samples within the range minT and maxT (milliseconds, both included). Returned blocks are sorted by MaxTime descending.

(ctx context.Context, userID string, minT, maxT int64, matchers []*labels.Matcher)

Source from the content-addressed store, hash-verified

86 // GetBlocks returns known blocks for userID containing samples within the range minT
87 // and maxT (milliseconds, both included). Returned blocks are sorted by MaxTime descending.
88 GetBlocks(ctx context.Context, userID string, minT, maxT int64, matchers []*labels.Matcher) (bucketindex.Blocks, map[ulid.ULID]*bucketindex.BlockDeletionMark, error)
89}
90
91// BlocksStoreClient is the interface that should be implemented by any client used

Implementers 3

BucketIndexBlocksFinderpkg/querier/blocks_finder_bucket_index
blocksFinderMockpkg/querier/blocks_store_queryable_tes
BucketScanBlocksFinderpkg/querier/blocks_finder_bucket_scan.

Calls

no outgoing calls