Class CCSUsageStats.Builder
- All Implemented Interfaces:
WithJson<CCSUsageStats.Builder>
,ObjectBuilder<CCSUsageStats>
- Enclosing class:
- CCSUsageStats
CCSUsageStats
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCCSUsageStats
.final CCSUsageStats.Builder
Required - Statistics about the clients that executed cross-cluster search requests.final CCSUsageStats.Builder
Required - Statistics about the clients that executed cross-cluster search requests.final CCSUsageStats.Builder
clusters
(String key, CCSUsageClusterStats value) Required - Statistics about the clusters that were queried in cross-cluster search requests.final CCSUsageStats.Builder
Required - Statistics about the clusters that were queried in cross-cluster search requests.final CCSUsageStats.Builder
Required - Statistics about the clusters that were queried in cross-cluster search requests.final CCSUsageStats.Builder
failureReasons
(String key, Integer value) Required - Statistics about the reasons for cross-cluster search request failures.final CCSUsageStats.Builder
failureReasons
(Map<String, Integer> map) Required - Statistics about the reasons for cross-cluster search request failures.final CCSUsageStats.Builder
Required - The keys are the names of the search feature, and the values are the number of requests that used that feature.final CCSUsageStats.Builder
Required - The keys are the names of the search feature, and the values are the number of requests that used that feature.final CCSUsageStats.Builder
remotesPerSearchAvg
(double value) Required - The average number of remote clusters that were queried in a single cross-cluster search request.final CCSUsageStats.Builder
remotesPerSearchMax
(int value) Required - The maximum number of remote clusters that were queried in a single cross-cluster search request.protected CCSUsageStats.Builder
self()
final CCSUsageStats.Builder
skipped
(int value) Required - The total number of cross-cluster search requests (successful or failed) that had at least one remote cluster skipped.final CCSUsageStats.Builder
success
(int value) Required - The total number of cross-cluster search requests that have been successfully executed by the cluster.final CCSUsageStats.Builder
took
(CCSUsageTimeValue value) Required - Statistics about the time taken to execute cross-cluster search requests.final CCSUsageStats.Builder
Required - Statistics about the time taken to execute cross-cluster search requests.final CCSUsageStats.Builder
tookMrtFalse
(CCSUsageTimeValue value) Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set tofalse
.final CCSUsageStats.Builder
Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set tofalse
.final CCSUsageStats.Builder
tookMrtTrue
(CCSUsageTimeValue value) Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set totrue
.final CCSUsageStats.Builder
Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set totrue
.final CCSUsageStats.Builder
total
(int value) Required - The total number of cross-cluster search requests that have been executed by the cluster.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Required - The total number of cross-cluster search requests that have been executed by the cluster.API name:
total
-
success
Required - The total number of cross-cluster search requests that have been successfully executed by the cluster.API name:
success
-
skipped
Required - The total number of cross-cluster search requests (successful or failed) that had at least one remote cluster skipped.API name:
skipped
-
took
Required - Statistics about the time taken to execute cross-cluster search requests.API name:
took
-
took
public final CCSUsageStats.Builder took(Function<CCSUsageTimeValue.Builder, ObjectBuilder<CCSUsageTimeValue>> fn) Required - Statistics about the time taken to execute cross-cluster search requests.API name:
took
-
tookMrtTrue
Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set totrue
.API name:
took_mrt_true
-
tookMrtTrue
public final CCSUsageStats.Builder tookMrtTrue(Function<CCSUsageTimeValue.Builder, ObjectBuilder<CCSUsageTimeValue>> fn) Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set totrue
.API name:
took_mrt_true
-
tookMrtFalse
Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set tofalse
.API name:
took_mrt_false
-
tookMrtFalse
public final CCSUsageStats.Builder tookMrtFalse(Function<CCSUsageTimeValue.Builder, ObjectBuilder<CCSUsageTimeValue>> fn) Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtrips
setting was set tofalse
.API name:
took_mrt_false
-
remotesPerSearchMax
Required - The maximum number of remote clusters that were queried in a single cross-cluster search request.API name:
remotes_per_search_max
-
remotesPerSearchAvg
Required - The average number of remote clusters that were queried in a single cross-cluster search request.API name:
remotes_per_search_avg
-
failureReasons
Required - Statistics about the reasons for cross-cluster search request failures. The keys are the failure reason names and the values are the number of requests that failed for that reason.API name:
failure_reasons
Adds all entries of
map
tofailureReasons
. -
failureReasons
Required - Statistics about the reasons for cross-cluster search request failures. The keys are the failure reason names and the values are the number of requests that failed for that reason.API name:
failure_reasons
Adds an entry to
failureReasons
. -
features
Required - The keys are the names of the search feature, and the values are the number of requests that used that feature. Single request can use more than one feature (e.g. bothasync
andwildcard
).API name:
features
Adds all entries of
map
tofeatures
. -
features
Required - The keys are the names of the search feature, and the values are the number of requests that used that feature. Single request can use more than one feature (e.g. bothasync
andwildcard
).API name:
features
Adds an entry to
features
. -
clients
Required - Statistics about the clients that executed cross-cluster search requests. The keys are the names of the clients, and the values are the number of requests that were executed by that client. Only known clients (such askibana
orelasticsearch
) are counted.API name:
clients
Adds all entries of
map
toclients
. -
clients
Required - Statistics about the clients that executed cross-cluster search requests. The keys are the names of the clients, and the values are the number of requests that were executed by that client. Only known clients (such askibana
orelasticsearch
) are counted.API name:
clients
Adds an entry to
clients
. -
clusters
Required - Statistics about the clusters that were queried in cross-cluster search requests. The keys are cluster names, and the values are per-cluster telemetry data. This also includes the local cluster itself, which uses the name(local)
.API name:
clusters
Adds all entries of
map
toclusters
. -
clusters
Required - Statistics about the clusters that were queried in cross-cluster search requests. The keys are cluster names, and the values are per-cluster telemetry data. This also includes the local cluster itself, which uses the name(local)
.API name:
clusters
Adds an entry to
clusters
. -
clusters
public final CCSUsageStats.Builder clusters(String key, Function<CCSUsageClusterStats.Builder, ObjectBuilder<CCSUsageClusterStats>> fn) Required - Statistics about the clusters that were queried in cross-cluster search requests. The keys are cluster names, and the values are per-cluster telemetry data. This also includes the local cluster itself, which uses the name(local)
.API name:
clusters
Adds an entry to
clusters
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CCSUsageStats.Builder>
-
build
Builds aCCSUsageStats
.- Specified by:
build
in interfaceObjectBuilder<CCSUsageStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-