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

Function NewPrometheusQueryOpts

promql/engine.go:168–173  ·  view source on GitHub ↗
(enablePerStepStats bool, lookbackDelta time.Duration)

Source from the content-addressed store, hash-verified

166var _ QueryOpts = &PrometheusQueryOpts{}
167
168func NewPrometheusQueryOpts(enablePerStepStats bool, lookbackDelta time.Duration) QueryOpts {
169 return &PrometheusQueryOpts{
170 enablePerStepStats: enablePerStepStats,
171 lookbackDelta: lookbackDelta,
172 }
173}
174
175func (p *PrometheusQueryOpts) EnablePerStepStats() bool {
176 return p.enablePerStepStats

Callers 5

TestQueryStatisticsFunction · 0.92
TestQueryLookbackDeltaFunction · 0.92
extractQueryOptsFunction · 0.92
TestExtractQueryOptsFunction · 0.92
newQueryMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestQueryStatisticsFunction · 0.74
TestQueryLookbackDeltaFunction · 0.74
TestExtractQueryOptsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…