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 TrainedModelStats
build()
Builds aTrainedModelStats
.TrainedModelStats.Builder
deploymentStats(TrainedModelDeploymentStats value)
A collection of deployment stats, which is present when the models are deployed.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.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
modelSizeStats(TrainedModelSizeStats value)
Required - A collection of model size stats.TrainedModelStats.Builder
modelSizeStats(java.util.function.Function<TrainedModelSizeStats.Builder,ObjectBuilder<TrainedModelSizeStats>> fn)
Required - A collection of model size stats.TrainedModelStats.Builder
pipelineCount(int value)
Required - The number of ingest pipelines that currently refer to the model.protected TrainedModelStats.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
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:
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 the nodes stats API.API name:
ingest
Adds 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:
self
in classWithJsonObjectBuilderBase<TrainedModelStats.Builder>
-
build
Builds aTrainedModelStats
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-