Record Class TraceAnalyzer.TraceStats
java.lang.Object
java.lang.Record
com.loomcache.server.tracing.TraceAnalyzer.TraceStats
- Enclosing class:
TraceAnalyzer
public static record TraceAnalyzer.TraceStats(int totalSpans, double avgDurationMs, double maxDurationMs, double minDurationMs, double errorRate, int errorCount, int successCount)
extends Record
Trace statistics.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionTraceStats(int totalSpans, double avgDurationMs, double maxDurationMs, double minDurationMs, double errorRate, int errorCount, int successCount) Creates an instance of aTraceStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgDurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorCountrecord component.doubleReturns the value of theerrorRaterecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themaxDurationMsrecord component.doubleReturns the value of theminDurationMsrecord component.intReturns the value of thesuccessCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalSpansrecord component.
-
Constructor Details
-
TraceStats
public TraceStats(int totalSpans, double avgDurationMs, double maxDurationMs, double minDurationMs, double errorRate, int errorCount, int successCount) Creates an instance of aTraceStatsrecord class.- Parameters:
totalSpans- the value for thetotalSpansrecord componentavgDurationMs- the value for theavgDurationMsrecord componentmaxDurationMs- the value for themaxDurationMsrecord componentminDurationMs- the value for theminDurationMsrecord componenterrorRate- the value for theerrorRaterecord componenterrorCount- the value for theerrorCountrecord componentsuccessCount- the value for thesuccessCountrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
totalSpans
public int totalSpans()Returns the value of thetotalSpansrecord component.- Returns:
- the value of the
totalSpansrecord component
-
avgDurationMs
public double avgDurationMs()Returns the value of theavgDurationMsrecord component.- Returns:
- the value of the
avgDurationMsrecord component
-
maxDurationMs
public double maxDurationMs()Returns the value of themaxDurationMsrecord component.- Returns:
- the value of the
maxDurationMsrecord component
-
minDurationMs
public double minDurationMs()Returns the value of theminDurationMsrecord component.- Returns:
- the value of the
minDurationMsrecord component
-
errorRate
public double errorRate()Returns the value of theerrorRaterecord component.- Returns:
- the value of the
errorRaterecord component
-
errorCount
public int errorCount()Returns the value of theerrorCountrecord component.- Returns:
- the value of the
errorCountrecord component
-
successCount
public int successCount()Returns the value of thesuccessCountrecord component.- Returns:
- the value of the
successCountrecord component
-