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.ParseField
CACHE_MISS_COUNT
static org.elasticsearch.common.ParseField
FAILURE_COUNT
static org.elasticsearch.common.ParseField
INFERENCE_COUNT
static org.elasticsearch.common.ParseField
MISSING_ALL_FIELDS_COUNT
static java.lang.String
NAME
static org.elasticsearch.common.xcontent.ConstructingObjectParser<InferenceStats,java.lang.Void>
PARSER
static org.elasticsearch.common.ParseField
TIMESTAMP
Fields 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 boolean
equals(java.lang.Object o)
long
getCacheMissCount()
How many cache misses occurred when inferring this modellong
getFailureCount()
How many inference failures occurred.long
getInferenceCount()
How many inference calls were made against this modellong
getMissingAllFieldsCount()
How many times this model attempted to infer with all its fields missingjava.time.Instant
getTimeStamp()
The timestamp of these statistics.int
hashCode()
java.lang.String
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(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, wait
Methods 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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-