Class NodesStatsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<NodesStatsRequest.Builder,,NodesStatsRequest> MutableBuilder<NodesStatsRequest.Builder,,NodesStatsRequest> ObjectBuilder<NodesStatsRequest>
- Enclosing class:
NodesStatsRequest
NodesStatsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodesStatsRequest.completionFields(String value, String... values) A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.completionFields(List<String> list) A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.copy()Create a new builderCopyableBuilderthat is a copy of this one.fielddataFields(String value, String... values) A comma-separated list or wildcard expressions of fields to include in field data statistics.fielddataFields(List<String> list) A comma-separated list or wildcard expressions of fields to include in field data statistics.A comma-separated list or wildcard expressions of fields to include in the statistics.A comma-separated list or wildcard expressions of fields to include in the statistics.A comma-separated list of search groups to include in the search statistics.A comma-separated list of search groups to include in the search statistics.includeSegmentFileSizes(Boolean value) Whentrue, reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).indexMetric(List<NodesStatsIndexMetric> list) Limit the information returned for indexes metric to the specified index metrics.indexMetric(NodesStatsIndexMetric value, NodesStatsIndexMetric... values) Limit the information returned for indexes metric to the specified index metrics.Indicates whether statistics are aggregated at the cluster, index, or shard level.metric(List<NodesStatsMetric> list) Limit the information returned to the specified metrics.metric(NodesStatsMetric value, NodesStatsMetric... values) Limit the information returned to the specified metrics.A comma-separated list of node IDs or names used to limit returned information.A comma-separated list of node IDs or names used to limit returned information.protected NodesStatsRequest.Builderself()The amount of time to wait for a response.The amount of time to wait for a response.A comma-separated list of document types for the indexing index metric.A comma-separated list of document types for the indexing index metric.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<NodesStatsRequest.Builder,NodesStatsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<NodesStatsRequest.Builder>
-
completionFields
A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.API name:
completion_fieldsAdds all elements of
listtocompletionFields. -
completionFields
A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.API name:
completion_fieldsAdds one or more values to
completionFields. -
fielddataFields
A comma-separated list or wildcard expressions of fields to include in field data statistics.API name:
fielddata_fieldsAdds all elements of
listtofielddataFields. -
fielddataFields
A comma-separated list or wildcard expressions of fields to include in field data statistics.API name:
fielddata_fieldsAdds one or more values to
fielddataFields. -
fields
A comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fieldsAdds all elements of
listtofields. -
fields
A comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fieldsAdds one or more values to
fields. -
groups
A comma-separated list of search groups to include in the search statistics.API name:
groupsAdds all elements of
listtogroups. -
groups
A comma-separated list of search groups to include in the search statistics.API name:
groupsAdds one or more values to
groups. -
includeSegmentFileSizes
Whentrue, reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).API name:
include_segment_file_sizes -
indexMetric
Limit the information returned for indexes metric to the specified index metrics. It can be used only if indexes (or all) metric is specified.API name:
index_metricAdds all elements of
listtoindexMetric. -
indexMetric
@Nonnull public final NodesStatsRequest.Builder indexMetric(NodesStatsIndexMetric value, NodesStatsIndexMetric... values) Limit the information returned for indexes metric to the specified index metrics. It can be used only if indexes (or all) metric is specified.API name:
index_metricAdds one or more values to
indexMetric. -
level
Indicates whether statistics are aggregated at the cluster, index, or shard level.API name:
level -
metric
Limit the information returned to the specified metrics.API name:
metricAdds all elements of
listtometric. -
metric
@Nonnull public final NodesStatsRequest.Builder metric(NodesStatsMetric value, NodesStatsMetric... values) Limit the information returned to the specified metrics.API name:
metricAdds one or more values to
metric. -
nodeId
A comma-separated list of node IDs or names used to limit returned information.API name:
node_idAdds all elements of
listtonodeId. -
nodeId
A comma-separated list of node IDs or names used to limit returned information.API name:
node_idAdds one or more values to
nodeId. -
timeout
The amount of time to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
@Nonnull public final NodesStatsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount of time to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
types
A comma-separated list of document types for the indexing index metric.API name:
typesAdds all elements of
listtotypes. -
types
A comma-separated list of document types for the indexing index metric.API name:
typesAdds one or more values to
types. -
build
Builds aNodesStatsRequest.- Specified by:
buildin interfaceObjectBuilder<NodesStatsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-