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 java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
INFERENCE_STATS
static org.elasticsearch.common.ParseField
INGEST_STATS
static org.elasticsearch.common.ParseField
MODEL_ID
static org.elasticsearch.common.ParseField
PIPELINE_COUNT
-
Constructor Summary
Constructors Constructor Description TrainedModelStats(java.lang.String modelId, java.util.Map<java.lang.String,java.lang.Object> ingestStats, int pipelineCount, InferenceStats inferenceStats)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static TrainedModelStats
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
InferenceStats
getInferenceStats()
Inference statisticsjava.util.Map<java.lang.String,java.lang.Object>
getIngestStats()
Ingest level statistics.java.lang.String
getModelId()
The model id for which the stats applyint
getPipelineCount()
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)
-
Field Details
-
MODEL_ID
public static final org.elasticsearch.common.ParseField MODEL_ID -
PIPELINE_COUNT
public static final org.elasticsearch.common.ParseField PIPELINE_COUNT -
INGEST_STATS
public static final org.elasticsearch.common.ParseField INGEST_STATS -
INFERENCE_STATS
public static final org.elasticsearch.common.ParseField INFERENCE_STATS
-
-
Constructor Details
-
TrainedModelStats
public TrainedModelStats(java.lang.String modelId, java.util.Map<java.lang.String,java.lang.Object> ingestStats, int pipelineCount, InferenceStats inferenceStats)
-
-
Method Details
-
fromXContent
public static TrainedModelStats fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
getModelId
public java.lang.String getModelId()The model id for which the stats apply -
getIngestStats
@Nullable public java.util.Map<java.lang.String,java.lang.Object> 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 java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-