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
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final String
static final org.elasticsearch.xcontent.ConstructingObjectParser<InferenceStats,
Void> static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionInferenceStats
(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, Instant timeStamp) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
How many cache misses occurred when inferring this modellong
How many inference failures occurred.long
How many inference calls were made against this modellong
How many times this model attempted to infer with all its fields missingThe timestamp of these statistics.int
hashCode()
toString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(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, wait
Methods 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:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-