Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/querier/queryrange/queryrangebase/limits_test.go

28 lines
603 B

package queryrangebase
import (
"context"
"time"
)
type mockLimits struct {
maxQueryLookback time.Duration
maxQueryLength time.Duration
maxCacheFreshness time.Duration
}
func (m mockLimits) MaxQueryLookback(context.Context, string) time.Duration {
return m.maxQueryLookback
}
func (m mockLimits) MaxQueryLength(context.Context, string) time.Duration {
return m.maxQueryLength
}
func (mockLimits) MaxQueryParallelism(context.Context, string) int {
return 14 // Flag default.
}
func (m mockLimits) MaxCacheFreshness(context.Context, string) time.Duration {
return m.maxCacheFreshness
}