Class DatafeedStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DatafeedStats.Builder>
co.elastic.clients.elasticsearch.ml.DatafeedStats.Builder
- All Implemented Interfaces:
- WithJson<DatafeedStats.Builder>,- ObjectBuilder<DatafeedStats>
- Enclosing class:
- DatafeedStats
public static class DatafeedStats.Builder
extends WithJsonObjectBuilderBase<DatafeedStats.Builder>
implements ObjectBuilder<DatafeedStats>
Builder for 
DatafeedStats.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal DatafeedStats.BuilderassignmentExplanation(String value) For started datafeeds only, contains messages relating to the selection of a node.build()Builds aDatafeedStats.final DatafeedStats.BuilderdatafeedId(String value) Required - A numerical character string that uniquely identifies the datafeed.final DatafeedStats.Buildernode(DiscoveryNodeCompact value) For started datafeeds only, this information pertains to the node upon which the datafeed is started.final DatafeedStats.BuilderFor started datafeeds only, this information pertains to the node upon which the datafeed is started.final DatafeedStats.BuilderrunningState(DatafeedRunningState value) An object containing the running state for this datafeed.final DatafeedStats.BuilderAn object containing the running state for this datafeed.protected DatafeedStats.Builderself()final DatafeedStats.Builderstate(DatafeedState value) Required - The status of the datafeed, which can be one of the following values:starting,started,stopping,stopped.final DatafeedStats.BuildertimingStats(DatafeedTimingStats value) An object that provides statistical information about timing aspect of this datafeed.final DatafeedStats.BuilderAn object that provides statistical information about timing aspect of this datafeed.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
assignmentExplanationFor started datafeeds only, contains messages relating to the selection of a node.API name: assignment_explanation
- 
datafeedIdRequired - A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.API name: datafeed_id
- 
nodeFor started datafeeds only, this information pertains to the node upon which the datafeed is started.API name: node
- 
nodepublic final DatafeedStats.Builder node(Function<DiscoveryNodeCompact.Builder, ObjectBuilder<DiscoveryNodeCompact>> fn) For started datafeeds only, this information pertains to the node upon which the datafeed is started.API name: node
- 
stateRequired - The status of the datafeed, which can be one of the following values:starting,started,stopping,stopped.API name: state
- 
timingStatsAn object that provides statistical information about timing aspect of this datafeed.API name: timing_stats
- 
timingStatspublic final DatafeedStats.Builder timingStats(Function<DatafeedTimingStats.Builder, ObjectBuilder<DatafeedTimingStats>> fn) An object that provides statistical information about timing aspect of this datafeed.API name: timing_stats
- 
runningStateAn object containing the running state for this datafeed. It is only provided if the datafeed is started.API name: running_state
- 
runningStatepublic final DatafeedStats.Builder runningState(Function<DatafeedRunningState.Builder, ObjectBuilder<DatafeedRunningState>> fn) An object containing the running state for this datafeed. It is only provided if the datafeed is started.API name: running_state
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<DatafeedStats.Builder>
 
- 
buildBuilds aDatafeedStats.- Specified by:
- buildin interface- ObjectBuilder<DatafeedStats>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-