Module org.elasticsearch.xcore
Class InferenceStats
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<InferenceStats, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionInferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, String modelId, String nodeId, Instant timeStamp) -
Method Summary
Modifier and TypeMethodDescriptionstatic InferenceStats.Accumulatoraccumulator(InferenceStats stats) static StringbooleanlonglonglonglonginthashCode()booleanhasStats()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
MISSING_ALL_FIELDS_COUNT
public static final org.elasticsearch.xcontent.ParseField MISSING_ALL_FIELDS_COUNT -
INFERENCE_COUNT
public static final org.elasticsearch.xcontent.ParseField INFERENCE_COUNT -
CACHE_MISS_COUNT
public static final org.elasticsearch.xcontent.ParseField CACHE_MISS_COUNT -
MODEL_ID
public static final org.elasticsearch.xcontent.ParseField MODEL_ID -
NODE_ID
public static final org.elasticsearch.xcontent.ParseField NODE_ID -
FAILURE_COUNT
public static final org.elasticsearch.xcontent.ParseField FAILURE_COUNT -
TYPE
public static final org.elasticsearch.xcontent.ParseField TYPE -
TIMESTAMP
public static final org.elasticsearch.xcontent.ParseField TIMESTAMP -
PARSER
-
-
Constructor Details
-
InferenceStats
-
InferenceStats
- Throws:
IOException
-
-
Method Details
-
docId
-
getMissingAllFieldsCount
public long getMissingAllFieldsCount() -
getInferenceCount
public long getInferenceCount() -
getFailureCount
public long getFailureCount() -
getCacheMissCount
public long getCacheMissCount() -
getModelId
-
getNodeId
-
getTimeStamp
-
hasStats
public boolean hasStats() -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
accumulator
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-