Package codes.grow.packages.datadoglogs
Class DatadogLogsFilter.Builder<B extends DatadogLogsFilter.Builder<B>>
java.lang.Object
codes.grow.packages.datadoglogs.DatadogLogsFilter.Builder<B>
- Type Parameters:
B- concrete builder type
- Direct Known Subclasses:
AggregateLogsOptions.Builder,SearchLogsRequest.Builder
- Enclosing class:
DatadogLogsFilter
public abstract static class DatadogLogsFilter.Builder<B extends DatadogLogsFilter.Builder<B>>
extends Object
Builder of the filter fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BCopies the filter fields of an existing filter.Sets the window start as ISO-8601, epoch milliseconds or date math.Sets the window start.Sets the indexes to search.Sets the indexes to search (empty means["*"]).Sets the Datadog search query, for exampleservice:checkout "run-7f3a".protected abstract Bself()Returns this builder.storageTier(StorageTier storageTier) Sets the storage tier (defaultStorageTier.INDEXES).Sets the window end as ISO-8601, epoch milliseconds or date math.Sets the window end.
-
Constructor Details
-
Builder
protected Builder()Creates an empty builder.
-
-
Method Details
-
self
Returns this builder.- Returns:
- this
-
copy
Copies the filter fields of an existing filter.- Parameters:
f- filter- Returns:
- this builder
-
query
Sets the Datadog search query, for exampleservice:checkout "run-7f3a".- Parameters:
query- query (blank means*)- Returns:
- this builder
-
from
Sets the window start as ISO-8601, epoch milliseconds or date math.- Parameters:
from- time string- Returns:
- this builder
- Throws:
ValidationException- when blank
-
from
Sets the window start.- Parameters:
from- instant- Returns:
- this builder
-
to
Sets the window end as ISO-8601, epoch milliseconds or date math.- Parameters:
to- time string- Returns:
- this builder
- Throws:
ValidationException- when blank
-
to
Sets the window end.- Parameters:
to- instant- Returns:
- this builder
-
indexes
Sets the indexes to search (empty means["*"]).- Parameters:
indexes- index names- Returns:
- this builder
-
indexes
Sets the indexes to search.- Parameters:
indexes- index names- Returns:
- this builder
-
storageTier
Sets the storage tier (defaultStorageTier.INDEXES).- Parameters:
storageTier- tier- Returns:
- this builder
-