Package codes.grow.packages.datadogapm
Class SearchSpansOptions.Builder
java.lang.Object
codes.grow.packages.datadogapm.SearchSpansOptions.Builder
- Enclosing class:
SearchSpansOptions
Builder of
SearchSpansOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets the cursor of a previous page.from(DatadogTime from) Sets the window start.limit(int limit) Sets the page size (1..1000; checked when the request is made).Sets the query, e.g.Sets the sort order.Sets the timezone.to(DatadogTime to) Sets the window end.
-
Method Details
-
query
Sets the query, e.g.service:web @http.status_code:500.- Parameters:
query- query (nullor empty means*)- Returns:
- this builder
-
from
Sets the window start.- Parameters:
from- start ornull- Returns:
- this builder
-
to
Sets the window end.- Parameters:
to- end ornull- Returns:
- this builder
-
limit
Sets the page size (1..1000; checked when the request is made).- Parameters:
limit- page size- Returns:
- this builder
-
sort
Sets the sort order.- Parameters:
sort-timestampor-timestamp(nullmeanstimestamp)- Returns:
- this builder
-
cursor
Sets the cursor of a previous page.- Parameters:
cursor- cursor ornull- Returns:
- this builder
-
timezone
Sets the timezone.- Parameters:
timezone- e.g.Europe/Berlin(nullmeansUTC)- Returns:
- this builder
-
build
Builds the options.- Returns:
- options
-