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 Summary
Constructors -
Method Summary
Modifier 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.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assignmentExplanation
For started datafeeds only, contains messages relating to the selection of a node.API name:
assignment_explanation -
datafeedId
Required - 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 -
node
For started datafeeds only, this information pertains to the node upon which the datafeed is started.API name:
node -
node
public 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 -
state
Required - The status of the datafeed, which can be one of the following values:starting,started,stopping,stopped.API name:
state -
timingStats
An object that provides statistical information about timing aspect of this datafeed.API name:
timing_stats -
timingStats
public 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 -
runningState
An object containing the running state for this datafeed. It is only provided if the datafeed is started.API name:
running_state -
runningState
public 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 classWithJsonObjectBuilderBase<DatafeedStats.Builder>
-
build
Builds aDatafeedStats.- Specified by:
buildin interfaceObjectBuilder<DatafeedStats>- Throws:
NullPointerException- if some of the required fields are null.
-