Module org.elasticsearch.xcore
Class InferenceStats
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final Stringstatic final ParseFieldstatic final ConstructingObjectParser<InferenceStats, Void> static final ParseFieldstatic final 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()toXContent(XContentBuilder builder, 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
-
INFERENCE_COUNT
-
CACHE_MISS_COUNT
-
MODEL_ID
-
NODE_ID
-
FAILURE_COUNT
-
TYPE
-
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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
accumulator
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-