Class TrainedModelStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelStats.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelStats.Builder
- All Implemented Interfaces:
WithJson<TrainedModelStats.Builder>,ObjectBuilder<TrainedModelStats>
- Enclosing class:
- TrainedModelStats
public static class TrainedModelStats.Builder
extends WithJsonObjectBuilderBase<TrainedModelStats.Builder>
implements ObjectBuilder<TrainedModelStats>
Builder for
TrainedModelStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTrainedModelStats.A collection of inference stats fields.inferenceStats(Function<TrainedModelInferenceStats.Builder, ObjectBuilder<TrainedModelInferenceStats>> fn) A collection of inference stats fields.A collection of ingest stats for the model across all nodes.A collection of ingest stats for the model across all nodes.Required - The unique identifier of the trained model.pipelineCount(int value) Required - The number of ingest pipelines that currently refer to the model.protected TrainedModelStats.Builderself()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
-
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(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:
ingestAdds all entries of
maptoingest. -
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:
ingestAdds an entry to
ingest. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelStats.Builder>
-
build
Builds aTrainedModelStats.- Specified by:
buildin interfaceObjectBuilder<TrainedModelStats>- Throws:
NullPointerException- if some of the required fields are null.
-