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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelStatsbuild()Builds aTrainedModelStats.TrainedModelStats.BuilderdeploymentStats(TrainedModelDeploymentStats value)A collection of deployment stats, which is present when the models are deployed.TrainedModelStats.BuilderdeploymentStats(java.util.function.Function<TrainedModelDeploymentStats.Builder,ObjectBuilder<TrainedModelDeploymentStats>> fn)A collection of deployment stats, which is present when the models are deployed.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.lang.String key, JsonData value)A collection of ingest stats for the model across all nodes.TrainedModelStats.Builderingest(java.util.Map<java.lang.String,JsonData> map)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.BuildermodelSizeStats(TrainedModelSizeStats value)Required - A collection of model size stats.TrainedModelStats.BuildermodelSizeStats(java.util.function.Function<TrainedModelSizeStats.Builder,ObjectBuilder<TrainedModelSizeStats>> fn)Required - A collection of model size stats.TrainedModelStats.BuilderpipelineCount(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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentStats
public final TrainedModelStats.Builder deploymentStats(@Nullable TrainedModelDeploymentStats value)A collection of deployment stats, which is present when the models are deployed.API name:
deployment_stats -
deploymentStats
public final TrainedModelStats.Builder deploymentStats(java.util.function.Function<TrainedModelDeploymentStats.Builder,ObjectBuilder<TrainedModelDeploymentStats>> fn)A collection of deployment stats, which is present when the models are deployed.API name:
deployment_stats -
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 the nodes stats API.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 the nodes stats API.API name:
ingestAdds an entry to
ingest. -
modelId
Required - The unique identifier of the trained model.API name:
model_id -
modelSizeStats
Required - A collection of model size stats.API name:
model_size_stats -
modelSizeStats
public final TrainedModelStats.Builder modelSizeStats(java.util.function.Function<TrainedModelSizeStats.Builder,ObjectBuilder<TrainedModelSizeStats>> fn)Required - A collection of model size stats.API name:
model_size_stats -
pipelineCount
Required - The number of ingest pipelines that currently refer to the model.API name:
pipeline_count -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelStats.Builder>
-
build
Builds aTrainedModelStats.- Specified by:
buildin interfaceObjectBuilder<TrainedModelStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-