Class InferenceStats
java.lang.Object
org.elasticsearch.client.ml.inference.trainedmodel.InferenceStats
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class InferenceStats
extends java.lang.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
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldCACHE_MISS_COUNTstatic org.elasticsearch.common.ParseFieldFAILURE_COUNTstatic org.elasticsearch.common.ParseFieldINFERENCE_COUNTstatic org.elasticsearch.common.ParseFieldMISSING_ALL_FIELDS_COUNTstatic java.lang.StringNAMEstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<InferenceStats,java.lang.Void>PARSERstatic org.elasticsearch.common.ParseFieldTIMESTAMPFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description InferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, java.time.Instant timeStamp) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)longgetCacheMissCount()How many cache misses occurred when inferring this modellonggetFailureCount()How many inference failures occurred.longgetInferenceCount()How many inference calls were made against this modellonggetMissingAllFieldsCount()How many times this model attempted to infer with all its fields missingjava.time.InstantgetTimeStamp()The timestamp of these statistics.inthashCode()java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(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, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
MISSING_ALL_FIELDS_COUNT
public static final org.elasticsearch.common.ParseField MISSING_ALL_FIELDS_COUNT -
INFERENCE_COUNT
public static final org.elasticsearch.common.ParseField INFERENCE_COUNT -
CACHE_MISS_COUNT
public static final org.elasticsearch.common.ParseField CACHE_MISS_COUNT -
FAILURE_COUNT
public static final org.elasticsearch.common.ParseField FAILURE_COUNT -
TIMESTAMP
public static final org.elasticsearch.common.ParseField TIMESTAMP -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<InferenceStats,java.lang.Void> PARSER
-
-
Constructor Details
-
InferenceStats
public InferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, java.time.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
public java.time.Instant getTimeStamp()The timestamp of these 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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-