Class QueryOptions.Builder
java.lang.Object
codes.grow.packages.cloudwatchlogs.QueryOptions.Builder
- Enclosing class:
QueryOptions
Builder of
QueryOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets end: end of the range (default now).Sets groups: log group names or ARNs (1–50; default[config.logGroup]).Sets limit: maximum rows (1–10 000).pollInterval(Duration value) Sets pollInterval: first poll interval ofquery(default 1 s), doubled up to 5 s.retryOnQueryLimit(Integer value) Sets retryOnQueryLimit: StartQuery attempts ofqueryonLimitExceededException(default 3).Sets start: start of the range (default one hour before end).Sets timeout:querygives up after this long (default 60 s); the query is stopped best-effort.
-
Method Details
-
groups
Sets groups: log group names or ARNs (1–50; default[config.logGroup]).- Parameters:
value- the value- Returns:
- this builder
-
start
Sets start: start of the range (default one hour before end).- Parameters:
value- the value- Returns:
- this builder
-
end
Sets end: end of the range (default now).- Parameters:
value- the value- Returns:
- this builder
-
limit
Sets limit: maximum rows (1–10 000).- Parameters:
value- the value- Returns:
- this builder
-
timeout
Sets timeout:querygives up after this long (default 60 s); the query is stopped best-effort.- Parameters:
value- the value- Returns:
- this builder
-
pollInterval
Sets pollInterval: first poll interval ofquery(default 1 s), doubled up to 5 s.- Parameters:
value- the value- Returns:
- this builder
-
retryOnQueryLimit
Sets retryOnQueryLimit: StartQuery attempts ofqueryonLimitExceededException(default 3).- Parameters:
value- the value- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-