Package codes.grow.packages.loki
Class QueryRangeOptions
java.lang.Object
codes.grow.packages.loki.QueryRangeOptions
Options of
LokiClient.queryRange(java.lang.String) (log and metric range queries).-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryRangeOptions.Builderbuilder()Starts a builder.static QueryRangeOptionsdefaults()Default options (last hour, Loki's default limit 100, newest first).Returns the direction.end()Returns the exclusive end.interval()Returns the stream sampling interval (log queries).limit()Returns the maximum number of entries across all streams.since()Returns the relative start used when no start is set.start()Returns the inclusive start.step()Returns the metric query resolution.
-
Method Details
-
defaults
Default options (last hour, Loki's default limit 100, newest first).- Returns:
- the options
-
builder
Starts a builder.- Returns:
- a new builder
-
start
Returns the inclusive start.- Returns:
- start, or empty (one hour before end)
-
end
Returns the exclusive end.- Returns:
- end, or empty (now)
-
since
Returns the relative start used when no start is set.- Returns:
- since, or empty
-
step
Returns the metric query resolution.- Returns:
- step, or empty
-
interval
Returns the stream sampling interval (log queries).- Returns:
- interval, or empty
-
limit
Returns the maximum number of entries across all streams.- Returns:
- limit, or empty (server default 100)
-
direction
Returns the direction.- Returns:
- direction, or empty (backward)
-