Package codes.grow.packages.betterstack
Class SearchLogsOptions
java.lang.Object
codes.grow.packages.betterstack.SearchLogsOptions
Options of
BetterStackQuery.searchLogs(SearchLogsOptions). Values are checked when the
search runs (ValidationException).-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchLogsOptions.Builderbuilder()Returns a builder.contains()Case-sensitive literal text searched in the raw event JSON (JSON-escaped first, so it matches text inside string values); empty matches everything.cursor()Opaque cursor of a previous page.static SearchLogsOptionsdefaults()Defaults: the configured source table, no text filter, the last 24 h, 100 records, newest first.end()Inclusive window end; empty means no upper bound (robust to clock skew and ingest delay).intlimit()Records per page, 1 to 10000 (default 100).order()Order bydt(default newest first).source()Collection (t1234_myapp); empty uses the configured source table.start()Inclusive window start; empty means 24 h beforeend()(or before now).Returns a builder pre-filled with these options.
-
Method Details
-
defaults
Defaults: the configured source table, no text filter, the last 24 h, 100 records, newest first.- Returns:
- options
-
builder
Returns a builder.- Returns:
- builder
-
toBuilder
Returns a builder pre-filled with these options.- Returns:
- builder
-
source
Collection (t1234_myapp); empty uses the configured source table.- Returns:
- source
-
contains
Case-sensitive literal text searched in the raw event JSON (JSON-escaped first, so it matches text inside string values); empty matches everything.- Returns:
- text
-
start
Inclusive window start; empty means 24 h beforeend()(or before now).- Returns:
- start
-
end
Inclusive window end; empty means no upper bound (robust to clock skew and ingest delay).- Returns:
- end
-
limit
public int limit()Records per page, 1 to 10000 (default 100).- Returns:
- limit
-
order
Order bydt(default newest first).- Returns:
- order
-
cursor
Opaque cursor of a previous page.- Returns:
- cursor
-