MCPcopy Index your code
hub / github.com/prometheus/prometheus / NewRangeQuery

Method NewRangeQuery

promql/engine.go:128–128  ·  view source on GitHub ↗
(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, start, end time.Time, interval time.Duration)

Source from the content-addressed store, hash-verified

126type QueryEngine interface {
127 NewInstantQuery(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, ts time.Time) (Query, error)
128 NewRangeQuery(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, start, end time.Time, interval time.Duration) (Query, error)
129}
130
131var _ QueryLogger = (*logging.JSONFileLogger)(nil)

Callers 15

BenchmarkRangeQueryFunction · 0.65
BenchmarkJoinQueryFunction · 0.65
TestQueryStatisticsFunction · 0.65
TestMaxQuerySamplesFunction · 0.65
TestAtModifierFunction · 0.65
TestEngineOptsValidationFunction · 0.65

Implementers 3

closeCountingEnginerules/manager_test.go
Enginepromql/engine.go
fakeEngineweb/api/v1/api_test.go

Calls

no outgoing calls

Tested by 13

BenchmarkRangeQueryFunction · 0.52
BenchmarkJoinQueryFunction · 0.52
TestQueryStatisticsFunction · 0.52
TestMaxQuerySamplesFunction · 0.52
TestAtModifierFunction · 0.52
TestEngineOptsValidationFunction · 0.52