Skip to content

Commit a9a827f

Browse files
authored
composite promql.QueryEngine interface (#6956)
Signed-off-by: yeya24 <[email protected]>
1 parent f5392e6 commit a9a827f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/engine/engine.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ func GetEngineType(ctx context.Context) Type {
4545
}
4646

4747
type QueryEngine interface {
48-
NewInstantQuery(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, qs string, ts time.Time) (promql.Query, error)
49-
NewRangeQuery(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, qs string, start, end time.Time, interval time.Duration) (promql.Query, error)
48+
promql.QueryEngine
5049
MakeInstantQueryFromPlan(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, root logicalplan.Node, ts time.Time, qs string) (promql.Query, error)
5150
MakeRangeQueryFromPlan(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, root logicalplan.Node, start time.Time, end time.Time, interval time.Duration, qs string) (promql.Query, error)
5251
}

0 commit comments

Comments
 (0)