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.BuilderRequired - Statistics about the clients that executed cross-cluster search requests.final CCSUsageStats.BuilderRequired - Statistics about the clients that executed cross-cluster search requests.final CCSUsageStats.Builderclusters(String key, CCSUsageClusterStats value) Required - Statistics about the clusters that were queried in cross-cluster search requests.final CCSUsageStats.BuilderRequired - Statistics about the clusters that were queried in cross-cluster search requests.final CCSUsageStats.BuilderRequired - Statistics about the clusters that were queried in cross-cluster search requests.final CCSUsageStats.BuilderfailureReasons(String key, Integer value) Required - Statistics about the reasons for cross-cluster search request failures.final CCSUsageStats.BuilderfailureReasons(Map<String, Integer> map) Required - Statistics about the reasons for cross-cluster search request failures.final CCSUsageStats.BuilderRequired - The keys are the names of the search feature, and the values are the number of requests that used that feature.final CCSUsageStats.BuilderRequired - The keys are the names of the search feature, and the values are the number of requests that used that feature.final CCSUsageStats.BuilderremotesPerSearchAvg(double value) Required - The average number of remote clusters that were queried in a single cross-cluster search request.final CCSUsageStats.BuilderremotesPerSearchMax(int value) Required - The maximum number of remote clusters that were queried in a single cross-cluster search request.protected CCSUsageStats.Builderself()final CCSUsageStats.Builderskipped(int value) Required - The total number of cross-cluster search requests (successful or failed) that had at least one remote cluster skipped.final CCSUsageStats.Buildersuccess(int value) Required - The total number of cross-cluster search requests that have been successfully executed by the cluster.final CCSUsageStats.Buildertook(CCSUsageTimeValue value) Required - Statistics about the time taken to execute cross-cluster search requests.final CCSUsageStats.BuilderRequired - Statistics about the time taken to execute cross-cluster search requests.final CCSUsageStats.BuildertookMrtFalse(CCSUsageTimeValue value) Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtripssetting was set tofalse.final CCSUsageStats.BuilderStatistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtripssetting was set tofalse.final CCSUsageStats.BuildertookMrtTrue(CCSUsageTimeValue value) Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtripssetting was set totrue.final CCSUsageStats.BuilderStatistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtripssetting was set totrue.final CCSUsageStats.Buildertotal(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
withJsonMethods 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_roundtripssetting 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_roundtripssetting was set totrue.API name:
took_mrt_true -
tookMrtFalse
Statistics about the time taken to execute cross-cluster search requests for which theccs_minimize_roundtripssetting 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_roundtripssetting 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_reasonsAdds all entries of
maptofailureReasons. -
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_reasonsAdds 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. bothasyncandwildcard).API name:
featuresAdds all entries of
maptofeatures. -
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. bothasyncandwildcard).API name:
featuresAdds 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 askibanaorelasticsearch) are counted.API name:
clientsAdds all entries of
maptoclients. -
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 askibanaorelasticsearch) are counted.API name:
clientsAdds 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:
clustersAdds all entries of
maptoclusters. -
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:
clustersAdds 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:
clustersAdds an entry to
clustersusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CCSUsageStats.Builder>
-
build
Builds aCCSUsageStats.- Specified by:
buildin interfaceObjectBuilder<CCSUsageStats>- Throws:
NullPointerException- if some of the required fields are null.
-