Class DatafeedsRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DatafeedsRecord.Builder>
co.elastic.clients.elasticsearch.cat.ml_datafeeds.DatafeedsRecord.Builder
- All Implemented Interfaces:
WithJson<DatafeedsRecord.Builder>
,ObjectBuilder<DatafeedsRecord>
- Enclosing class:
- DatafeedsRecord
public static class DatafeedsRecord.Builder
extends WithJsonObjectBuilderBase<DatafeedsRecord.Builder>
implements ObjectBuilder<DatafeedsRecord>
Builder for
DatafeedsRecord
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal DatafeedsRecord.Builder
assignmentExplanation
(String value) For started datafeeds only, contains messages relating to the selection of a node.final DatafeedsRecord.Builder
bucketsCount
(String value) The number of buckets processed.build()
Builds aDatafeedsRecord
.final DatafeedsRecord.Builder
The datafeed identifier.final DatafeedsRecord.Builder
nodeAddress
(String value) The network address of the assigned node.final DatafeedsRecord.Builder
nodeEphemeralId
(String value) The ephemeral identifier of the assigned node.final DatafeedsRecord.Builder
The unique identifier of the assigned node.final DatafeedsRecord.Builder
The name of the assigned node.final DatafeedsRecord.Builder
searchBucketAvg
(String value) The average search time per bucket, in milliseconds.final DatafeedsRecord.Builder
searchCount
(String value) The number of searches run by the datafeed.final DatafeedsRecord.Builder
searchExpAvgHour
(String value) The exponential average search time per hour, in milliseconds.final DatafeedsRecord.Builder
searchTime
(String value) The total time the datafeed spent searching, in milliseconds.protected DatafeedsRecord.Builder
self()
final DatafeedsRecord.Builder
state
(DatafeedState value) The status of the datafeed.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
-
id
The datafeed identifier.API name:
id
-
state
The status of the datafeed.API name:
state
-
assignmentExplanation
For started datafeeds only, contains messages relating to the selection of a node.API name:
assignment_explanation
-
bucketsCount
The number of buckets processed.API name:
buckets.count
-
searchCount
The number of searches run by the datafeed.API name:
search.count
-
searchTime
The total time the datafeed spent searching, in milliseconds.API name:
search.time
-
searchBucketAvg
The average search time per bucket, in milliseconds.API name:
search.bucket_avg
-
searchExpAvgHour
The exponential average search time per hour, in milliseconds.API name:
search.exp_avg_hour
-
nodeId
The unique identifier of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.API name:
node.id
-
nodeName
The name of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.API name:
node.name
-
nodeEphemeralId
The ephemeral identifier of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.API name:
node.ephemeral_id
-
nodeAddress
The network address of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.API name:
node.address
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DatafeedsRecord.Builder>
-
build
Builds aDatafeedsRecord
.- Specified by:
build
in interfaceObjectBuilder<DatafeedsRecord>
- Throws:
NullPointerException
- if some of the required fields are null.
-