MCPcopy
hub / github.com/prometheus/prometheus / Exec

Method Exec

promql/engine.go:146–146  ·  view source on GitHub ↗

Exec processes the query. Can only be called once.

(ctx context.Context)

Source from the content-addressed store, hash-verified

144type Query interface {
145 // Exec processes the query. Can only be called once.
146 Exec(ctx context.Context) *Result
147 // Close recovers memory used by the query result.
148 Close()
149 // Statement returns the parsed statement of the query.

Callers 15

TestQueryStatisticsFunction · 0.95
TestMaxQuerySamplesFunction · 0.95
TestAtModifierFunction · 0.95
testMethod · 0.65
queryFunction · 0.65
EngineQueryFuncFunction · 0.65
TestDerivFunction · 0.65
BenchmarkRangeQueryFunction · 0.65
BenchmarkJoinQueryFunction · 0.65

Implementers 3

closeCountingQueryrules/manager_test.go
querypromql/engine.go
fakeQueryweb/api/v1/api_test.go

Calls

no outgoing calls

Tested by 15

TestQueryStatisticsFunction · 0.76
TestMaxQuerySamplesFunction · 0.76
TestAtModifierFunction · 0.76
TestDerivFunction · 0.52
BenchmarkRangeQueryFunction · 0.52
BenchmarkJoinQueryFunction · 0.52
BenchmarkInfoFunctionFunction · 0.52
TestQueryConcurrencyFunction · 0.52