Package codes.grow.packages.loki
Class QueryRangeOptions.Builder
java.lang.Object
codes.grow.packages.loki.QueryRangeOptions.Builder
- Enclosing class:
QueryRangeOptions
Builder of
QueryRangeOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets the direction.Sets the exclusive end.Sets the stream sampling interval.limit(int limit) Sets the maximum number of entries (1–5000).Sets the relative start (end - since) used when no start is set.Sets the inclusive start.Sets the metric query resolution.
-
Method Details
-
start
Sets the inclusive start.- Parameters:
start- start- Returns:
- this builder
-
end
Sets the exclusive end.- Parameters:
end- end- Returns:
- this builder
-
since
Sets the relative start (end - since) used when no start is set.- Parameters:
since- positive duration- Returns:
- this builder
-
step
Sets the metric query resolution.- Parameters:
step- positive duration- Returns:
- this builder
-
interval
Sets the stream sampling interval.- Parameters:
interval- positive duration- Returns:
- this builder
-
limit
Sets the maximum number of entries (1–5000).- Parameters:
limit- limit- Returns:
- this builder
-
direction
Sets the direction.- Parameters:
direction- direction- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-