MCPcopy Index your code
hub / github.com/cortexproject/cortex / fromPromQLOpts

Function fromPromQLOpts

pkg/engine/engine.go:185–193  ·  view source on GitHub ↗
(opts promql.QueryOpts)

Source from the content-addressed store, hash-verified

183}
184
185func fromPromQLOpts(opts promql.QueryOpts) *thanosengine.QueryOpts {
186 if opts == nil {
187 return &thanosengine.QueryOpts{}
188 }
189 return &thanosengine.QueryOpts{
190 LookbackDeltaParam: opts.LookbackDelta(),
191 EnablePerStepStatsParam: opts.EnablePerStepStats(),
192 }
193}

Callers 4

NewInstantQueryMethod · 0.85
NewRangeQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected