Class TrainedModelStats
java.lang.Object
org.elasticsearch.client.ml.inference.TrainedModelStats
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class TrainedModelStats
extends Object
implements org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionTrainedModelStats(String modelId, Map<String,Object> ingestStats, int pipelineCount, InferenceStats inferenceStats)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static TrainedModelStats
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
Inference statisticsIngest level statistics.The model id for which the stats applyint
The total number of pipelines that reference the trained modelint
hashCode()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_ID
public static final org.elasticsearch.common.xcontent.ParseField MODEL_ID -
PIPELINE_COUNT
public static final org.elasticsearch.common.xcontent.ParseField PIPELINE_COUNT -
INGEST_STATS
public static final org.elasticsearch.common.xcontent.ParseField INGEST_STATS -
INFERENCE_STATS
public static final org.elasticsearch.common.xcontent.ParseField INFERENCE_STATS
-
-
Constructor Details
-
TrainedModelStats
public TrainedModelStats(String modelId, Map<String,Object> ingestStats, int pipelineCount, InferenceStats inferenceStats)
-
-
Method Details
-
fromXContent
public static TrainedModelStats fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
getModelId
The model id for which the stats apply -
getIngestStats
Ingest level statistics. SeeIngestStats.toXContent(XContentBuilder, Params)
for fields and format If there are no ingest pipelines referencing the model, then the ingest statistics could be null. -
getPipelineCount
public int getPipelineCount()The total number of pipelines that reference the trained model -
getInferenceStats
Inference statistics -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-