Class TransportActionMessageStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TransportActionMessageStats.Builder>
co.elastic.clients.elasticsearch.nodes.TransportActionMessageStats.Builder
- All Implemented Interfaces:
WithJson<TransportActionMessageStats.Builder>,ObjectBuilder<TransportActionMessageStats>
- Enclosing class:
- TransportActionMessageStats
public static class TransportActionMessageStats.Builder
extends WithJsonObjectBuilderBase<TransportActionMessageStats.Builder>
implements ObjectBuilder<TransportActionMessageStats>
Builder for
TransportActionMessageStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTransportActionMessageStats.count(long value) Required - The number of messages of this kind that the node has handled for this action.histogram(TransportMessageSizeHistogramBucket value, TransportMessageSizeHistogramBucket... values) Required - The distribution of the sizes of the messages of this kind that the node has handled for this action, represented as a histogram.histogram(Function<TransportMessageSizeHistogramBucket.Builder, ObjectBuilder<TransportMessageSizeHistogramBucket>> fn) Required - The distribution of the sizes of the messages of this kind that the node has handled for this action, represented as a histogram.Required - The distribution of the sizes of the messages of this kind that the node has handled for this action, represented as a histogram.protected TransportActionMessageStats.Builderself()The cumulative size of the messages of this kind that the node has handled for this action.totalSizeInBytes(long value) Required - The cumulative size, in bytes, of the messages of this kind that the node has handled for this action.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
-
count
Required - The number of messages of this kind that the node has handled for this action.API name:
count -
totalSize
The cumulative size of the messages of this kind that the node has handled for this action.API name:
total_size -
totalSizeInBytes
Required - The cumulative size, in bytes, of the messages of this kind that the node has handled for this action.API name:
total_size_in_bytes -
histogram
public final TransportActionMessageStats.Builder histogram(List<TransportMessageSizeHistogramBucket> list) Required - The distribution of the sizes of the messages of this kind that the node has handled for this action, represented as a histogram.API name:
histogramAdds all elements of
listtohistogram. -
histogram
public final TransportActionMessageStats.Builder histogram(TransportMessageSizeHistogramBucket value, TransportMessageSizeHistogramBucket... values) Required - The distribution of the sizes of the messages of this kind that the node has handled for this action, represented as a histogram.API name:
histogramAdds one or more values to
histogram. -
histogram
public final TransportActionMessageStats.Builder histogram(Function<TransportMessageSizeHistogramBucket.Builder, ObjectBuilder<TransportMessageSizeHistogramBucket>> fn) Required - The distribution of the sizes of the messages of this kind that the node has handled for this action, represented as a histogram.API name:
histogramAdds a value to
histogramusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TransportActionMessageStats.Builder>
-
build
Builds aTransportActionMessageStats.- Specified by:
buildin interfaceObjectBuilder<TransportActionMessageStats>- Throws:
NullPointerException- if some of the required fields are null.
-