Module org.elasticsearch.xcore
Class InferenceStats.Accumulator
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceStats.Accumulator
- Enclosing class:
InferenceStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrentStats(Instant timeStamp) Thread safe.merge(InferenceStats otherStats) NOT Thread Safe
-
Constructor Details
-
Accumulator
-
-
Method Details
-
merge
NOT Thread Safe- Parameters:
otherStats- the other stats with which to increment the current stats- Returns:
- Updated accumulator
-
incMissingFields
-
incInference
-
incFailure
-
currentStatsAndReset
Thread safe. Returns the current stats and resets the values of all the counters.- Returns:
- The current stats
-
currentStats
-