Package codes.grow.packages.loki
Class QueryOptions
java.lang.Object
codes.grow.packages.loki.QueryOptions
Options of
LokiClient.query(java.lang.String) (instant metric queries).
limit and direction are kept for API parity: Loki runs only metric queries as
instant queries, where they have no effect.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOptions.Builderbuilder()Starts a builder.static QueryOptionsdefaults()Default options (evaluation time = now).Returns the direction.limit()Returns the entry limit.time()Returns the evaluation time.
-
Method Details
-
defaults
Default options (evaluation time = now).- Returns:
- the options
-
builder
Starts a builder.- Returns:
- a new builder
-
time
Returns the evaluation time.- Returns:
- the time, or empty for now
-
limit
Returns the entry limit.- Returns:
- the limit, or empty
-
direction
Returns the direction.- Returns:
- the direction, or empty
-