MCPcopy
hub / github.com/prometheus/prometheus / query

Struct query

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

query implements the Query interface.

Source from the content-addressed store, hash-verified

189
190// query implements the Query interface.
191type query struct {
192 // Underlying data provider.
193 queryable storage.Queryable
194 // The original query string.
195 q string
196 // Statement of the parsed query.
197 stmt parser.Statement
198 // Timer stats for the query execution.
199 stats *stats.QueryTimers
200 // Sample stats for the query execution.
201 sampleStats *stats.QuerySamples
202 // Result matrix for reuse.
203 matrix Matrix
204 // Cancellation function for the query.
205 cancel func()
206
207 // The engine against which the query is executed.
208 ng *Engine
209}
210
211type QueryOrigin struct{}
212

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected