Class TrainedModelStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelStats.Builder
- All Implemented Interfaces:
ObjectBuilder<TrainedModelStats>
- Enclosing class:
- TrainedModelStats
public static class TrainedModelStats.Builder extends java.lang.Object implements ObjectBuilder<TrainedModelStats>
Builder for
TrainedModelStats.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelStatsbuild()Builds aTrainedModelStats.TrainedModelStats.BuilderinferenceStats(TrainedModelInferenceStats value)A collection of inference stats fields.TrainedModelStats.BuilderinferenceStats(java.util.function.Function<TrainedModelInferenceStats.Builder,ObjectBuilder<TrainedModelInferenceStats>> fn)A collection of inference stats fields.TrainedModelStats.Builderingest(java.util.Map<java.lang.String,JsonData> value)A collection of ingest stats for the model across all nodes.TrainedModelStats.BuildermodelId(java.lang.String value)Required - The unique identifier of the trained model.TrainedModelStats.BuilderpipelineCount(int value)Required - The number of ingest pipelines that currently refer to the model.TrainedModelStats.BuilderputIngest(java.lang.String key, JsonData value)Add a key/value toingest(Map), creating the map if needed.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 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 -
putIngest
Add a key/value toingest(Map), creating the map if needed. -
build
Builds aTrainedModelStats.- Specified by:
buildin interfaceObjectBuilder<TrainedModelStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-