Class InferenceStats
java.lang.Object
org.elasticsearch.client.ml.inference.trainedmodel.InferenceStats
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
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 Stringstatic final org.elasticsearch.xcontent.ConstructingObjectParser<InferenceStats,Void> static final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionInferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, Instant timeStamp) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongHow many cache misses occurred when inferring this modellongHow many inference failures occurred.longHow many inference calls were made against this modellongHow many times this model attempted to infer with all its fields missingThe timestamp of these statistics.inthashCode()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) 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 -
FAILURE_COUNT
public static final org.elasticsearch.xcontent.ParseField FAILURE_COUNT -
TIMESTAMP
public static final org.elasticsearch.xcontent.ParseField TIMESTAMP -
PARSER
-
-
Constructor Details
-
InferenceStats
public InferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, Instant timeStamp)
-
-
Method Details
-
getMissingAllFieldsCount
public long getMissingAllFieldsCount()How many times this model attempted to infer with all its fields missing -
getInferenceCount
public long getInferenceCount()How many inference calls were made against this model -
getFailureCount
public long getFailureCount()How many inference failures occurred. -
getCacheMissCount
public long getCacheMissCount()How many cache misses occurred when inferring this model -
getTimeStamp
The timestamp of these statistics. -
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
-