Record Class ExportStats.ProxyHistorySnapshotStats
java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.utils.ExportStats.ProxyHistorySnapshotStats
- Enclosing class:
ExportStats
public static record ExportStats.ProxyHistorySnapshotStats(int attempted, int success, long durationMs, int finalChunkTarget, long recordedAtMs)
extends Record
Immutable proxy-history snapshot performance summary.
-
Constructor Summary
ConstructorsConstructorDescriptionProxyHistorySnapshotStats(int attempted, int success, long durationMs, int finalChunkTarget, long recordedAtMs) Creates an instance of aProxyHistorySnapshotStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptedrecord component.doubleReturns effective throughput in docs/sec for this snapshot, or 0 when unavailable.longReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefinalChunkTargetrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of therecordedAtMsrecord component.intsuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProxyHistorySnapshotStats
public ProxyHistorySnapshotStats(int attempted, int success, long durationMs, int finalChunkTarget, long recordedAtMs) Creates an instance of aProxyHistorySnapshotStatsrecord class.- Parameters:
attempted- the value for theattemptedrecord componentsuccess- the value for thesuccessrecord componentdurationMs- the value for thedurationMsrecord componentfinalChunkTarget- the value for thefinalChunkTargetrecord componentrecordedAtMs- the value for therecordedAtMsrecord component
-
-
Method Details
-
docsPerSecond
public double docsPerSecond()Returns effective throughput in docs/sec for this snapshot, or 0 when unavailable. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
attempted
public int attempted()Returns the value of theattemptedrecord component.- Returns:
- the value of the
attemptedrecord component
-
success
public int success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
finalChunkTarget
public int finalChunkTarget()Returns the value of thefinalChunkTargetrecord component.- Returns:
- the value of the
finalChunkTargetrecord component
-
recordedAtMs
public long recordedAtMs()Returns the value of therecordedAtMsrecord component.- Returns:
- the value of the
recordedAtMsrecord component
-