Package codes.grow.packages.skywalking
Class QueryLogsOptions.Builder
java.lang.Object
codes.grow.packages.skywalking.QueryLogsOptions.Builder
- Enclosing class:
QueryLogsOptions
Builder of
QueryLogsOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options (validated when the query runs).Sets the endpoint name (needs a service).excludingKeywords(List<String> words) Adds words the content must not contain.Sets the instance name (needs a service).Adds words the content must contain.Sets the order.Sets the page.Sets the window.Sets the related segment (needs a trace id).Sets the service name.Sets the related span (needs a trace id).Adds a tag match.Adds tag matches.Sets the related trace id.
-
Method Details
-
service
Sets the service name.- Parameters:
service- name- Returns:
- this builder
-
instance
Sets the instance name (needs a service).- Parameters:
instance- name- Returns:
- this builder
-
endpoint
Sets the endpoint name (needs a service).- Parameters:
endpoint- name- Returns:
- this builder
-
traceId
Sets the related trace id.- Parameters:
traceId- id- Returns:
- this builder
-
segmentId
Sets the related segment (needs a trace id).- Parameters:
segmentId- id- Returns:
- this builder
-
spanId
Sets the related span (needs a trace id).- Parameters:
spanId- id or null- Returns:
- this builder
-
keywords
Adds words the content must contain.- Parameters:
words- words- Returns:
- this builder
-
excludingKeywords
Adds words the content must not contain.- Parameters:
words- words- Returns:
- this builder
-
tag
Adds a tag match.- Parameters:
key- keyvalue- value- Returns:
- this builder
-
tags
Adds tag matches.- Parameters:
tags- tags- Returns:
- this builder
-
range
Sets the window.- Parameters:
range- range or null- Returns:
- this builder
-
paging
Sets the page.- Parameters:
paging- paging- Returns:
- this builder
-
order
Sets the order.- Parameters:
order- order- Returns:
- this builder
-
build
Builds the options (validated when the query runs).- Returns:
- options
-