Class NodeUsage.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeUsage.Builder>
co.elastic.clients.elasticsearch.nodes.usage.NodeUsage.Builder
- All Implemented Interfaces:
WithJson<NodeUsage.Builder>,ObjectBuilder<NodeUsage>
- Enclosing class:
- NodeUsage
public static class NodeUsage.Builder
extends WithJsonObjectBuilderBase<NodeUsage.Builder>
implements ObjectBuilder<NodeUsage>
Builder for
NodeUsage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NodeUsage.Builderaggregations(String key, JsonData value) Required - The total number of times search aggregations have been called on this node since the last restart.final NodeUsage.Builderaggregations(Map<String, JsonData> map) Required - The total number of times search aggregations have been called on this node since the last restart.build()Builds aNodeUsage.final NodeUsage.BuilderrestActions(String key, Integer value) Required - The total number of times each REST endpoint has been called on this node since the last restart.final NodeUsage.BuilderrestActions(Map<String, Integer> map) Required - The total number of times each REST endpoint has been called on this node since the last restart.protected NodeUsage.Builderself()final NodeUsage.Buildersince(long value) Required - The timestamp for when the collection of these statistics started.final NodeUsage.Buildertimestamp(long value) Required - The timestamp for when these statistics were collected.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
-
restActions
Required - The total number of times each REST endpoint has been called on this node since the last restart. Note that the REST endpoint names are not considered stable.API name:
rest_actionsAdds all entries of
maptorestActions. -
restActions
Required - The total number of times each REST endpoint has been called on this node since the last restart. Note that the REST endpoint names are not considered stable.API name:
rest_actionsAdds an entry to
restActions. -
since
Required - The timestamp for when the collection of these statistics started.API name:
since -
timestamp
Required - The timestamp for when these statistics were collected.API name:
timestamp -
aggregations
Required - The total number of times search aggregations have been called on this node since the last restart.API name:
aggregationsAdds all entries of
maptoaggregations. -
aggregations
Required - The total number of times search aggregations have been called on this node since the last restart.API name:
aggregationsAdds an entry to
aggregations. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<NodeUsage.Builder>
-
build
Builds aNodeUsage.- Specified by:
buildin interfaceObjectBuilder<NodeUsage>- Throws:
NullPointerException- if some of the required fields are null.
-