Class TrainedModelStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.TrainedModelStats.Builder
- All Implemented Interfaces:
ObjectBuilder<TrainedModelStats>
- Enclosing class:
- TrainedModelStats
public static class TrainedModelStats.Builder extends ObjectBuilderBase implements ObjectBuilder<TrainedModelStats>
Builder for
TrainedModelStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelStats
build()
Builds aTrainedModelStats
.TrainedModelStats.Builder
inferenceStats(TrainedModelInferenceStats value)
A collection of inference stats fields.TrainedModelStats.Builder
inferenceStats(java.util.function.Function<TrainedModelInferenceStats.Builder,ObjectBuilder<TrainedModelInferenceStats>> fn)
A collection of inference stats fields.TrainedModelStats.Builder
ingest(java.lang.String key, JsonData value)
A collection of ingest stats for the model across all nodes.TrainedModelStats.Builder
ingest(java.util.Map<java.lang.String,JsonData> map)
A collection of ingest stats for the model across all nodes.TrainedModelStats.Builder
modelId(java.lang.String value)
Required - The unique identifier of the trained model.TrainedModelStats.Builder
pipelineCount(int value)
Required - The number of ingest pipelines that currently refer to the model.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
Required - The unique identifier of the trained model.API name:
model_id
-
pipelineCount
Required - The number of ingest pipelines that currently refer to the model.API name:
pipeline_count
-
inferenceStats
A collection of inference stats fields.API name:
inference_stats
-
inferenceStats
public final TrainedModelStats.Builder inferenceStats(java.util.function.Function<TrainedModelInferenceStats.Builder,ObjectBuilder<TrainedModelInferenceStats>> fn)A collection of inference stats fields.API name:
inference_stats
-
ingest
A collection of ingest stats for the model across all nodes. The values are summations of the individual node statistics. The format matches the ingest section in Nodes stats.API name:
ingest
Adds all entries of
map
toingest
. -
ingest
A collection of ingest stats for the model across all nodes. The values are summations of the individual node statistics. The format matches the ingest section in Nodes stats.API name:
ingest
Adds an entry to
ingest
. -
build
Builds aTrainedModelStats
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-