Module org.elasticsearch.xcore
Class GetTrainedModelsStatsAction.Response.Builder
java.lang.Object
org.elasticsearch.xpack.core.ml.action.GetTrainedModelsStatsAction.Response.Builder
- Enclosing class:
GetTrainedModelsStatsAction.Response
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDeploymentStatsByDeploymentId(Map<String, AssignmentStats> assignmentStatsMap) This sets the overall stats map and adds the models to the overall inference stats mapsetExpandedModelIdsWithAliases(Map<String, Set<String>> expandedIdsWithAliases) setInferenceStatsByModelId(Map<String, InferenceStats> inferenceStatsByModelId) setIngestStatsByModelId(Map<String, IngestStats> ingestStatsByModelId) setModelSizeStatsByModelId(Map<String, TrainedModelSizeStats> modelSizeStatsByModelId) setTotalModelCount(long totalModelCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setTotalModelCount
-
setExpandedModelIdsWithAliases
public GetTrainedModelsStatsAction.Response.Builder setExpandedModelIdsWithAliases(Map<String, Set<String>> expandedIdsWithAliases) -
getExpandedModelIdsWithAliases
-
setModelSizeStatsByModelId
public GetTrainedModelsStatsAction.Response.Builder setModelSizeStatsByModelId(Map<String, TrainedModelSizeStats> modelSizeStatsByModelId) -
setIngestStatsByModelId
public GetTrainedModelsStatsAction.Response.Builder setIngestStatsByModelId(Map<String, IngestStats> ingestStatsByModelId) -
setInferenceStatsByModelId
public GetTrainedModelsStatsAction.Response.Builder setInferenceStatsByModelId(Map<String, InferenceStats> inferenceStatsByModelId) -
setDeploymentStatsByDeploymentId
public GetTrainedModelsStatsAction.Response.Builder setDeploymentStatsByDeploymentId(Map<String, AssignmentStats> assignmentStatsMap) This sets the overall stats map and adds the models to the overall inference stats map- Parameters:
assignmentStatsMap- map of model_id to assignment stats- Returns:
- the builder with inference stats map updated and assignment stats map set
-
build
-