Record Class RichObservationCollector.Snapshot
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.RichObservationCollector.Snapshot
- Record Components:
stepName- the step this snapshot describestotalCount- Out: distinct docs the node forwarded onward (processed)uniqueCount- In: all distinct docs seen at this node (processed + no-op + reject)duplicateCount- distinct docs re-delivered with the same outcomerateRecent- throughput over the sliding recent window, in docs per secondrateOverall- overall throughput frozen at the last observation, in docs per secondlatencyP50Ms- 50th-percentile service-time latency in millisecondslatencyP95Ms- 95th-percentile service-time latency in millisecondslatencyP99Ms- 99th-percentile service-time latency in millisecondslatencyMaxMs- maximum observed service-time latency in millisecondsrecentDocIds- ring buffer of the most recent doc ids (with outcome suffixes)errorCount- number of failed observations recordedlastErrorMessage- the most recent non-empty error message, or empty stringnoOpCount- distinct docs whose terminal outcome is NO-OPrejectCount- distinct docs whose terminal outcome is REJECTsoftErrorCount- number of non-fatal soft errors recordedrejectReasons- reject reason name to count of rejects with that reason
- Enclosing class:
RichObservationCollector
public static record RichObservationCollector.Snapshot(String stepName, long totalCount, long uniqueCount, long duplicateCount, double rateRecent, double rateOverall, long latencyP50Ms, long latencyP95Ms, long latencyP99Ms, long latencyMaxMs, List<String> recentDocIds, long errorCount, String lastErrorMessage, long noOpCount, long rejectCount, long softErrorCount, Map<String,Long> rejectReasons)
extends Record
Snapshot returned by
RichObservationCollector.snapshot(String, String); immutable.-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(String stepName, long totalCount, long uniqueCount, long duplicateCount, double rateRecent, double rateOverall, long latencyP50Ms, long latencyP95Ms, long latencyP99Ms, long latencyMaxMs, List<String> recentDocIds, long errorCount, String lastErrorMessage, long noOpCount, long rejectCount, long softErrorCount, Map<String, Long> rejectReasons) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theduplicateCountrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theerrorCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastErrorMessagerecord component.longReturns the value of thelatencyMaxMsrecord component.longReturns the value of thelatencyP50Msrecord component.longReturns the value of thelatencyP95Msrecord component.longReturns the value of thelatencyP99Msrecord component.longReturns the value of thenoOpCountrecord component.doubleReturns the value of therateOverallrecord component.doubleReturns the value of therateRecentrecord component.Returns the value of therecentDocIdsrecord component.longReturns the value of therejectCountrecord component.Returns the value of therejectReasonsrecord component.longReturns the value of thesoftErrorCountrecord component.stepName()Returns the value of thestepNamerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalCountrecord component.longReturns the value of theuniqueCountrecord component.
-
Constructor Details
-
Snapshot
public Snapshot(String stepName, long totalCount, long uniqueCount, long duplicateCount, double rateRecent, double rateOverall, long latencyP50Ms, long latencyP95Ms, long latencyP99Ms, long latencyMaxMs, List<String> recentDocIds, long errorCount, String lastErrorMessage, long noOpCount, long rejectCount, long softErrorCount, Map<String, Long> rejectReasons) Creates an instance of aSnapshotrecord class.- Parameters:
stepName- the value for thestepNamerecord componenttotalCount- the value for thetotalCountrecord componentuniqueCount- the value for theuniqueCountrecord componentduplicateCount- the value for theduplicateCountrecord componentrateRecent- the value for therateRecentrecord componentrateOverall- the value for therateOverallrecord componentlatencyP50Ms- the value for thelatencyP50Msrecord componentlatencyP95Ms- the value for thelatencyP95Msrecord componentlatencyP99Ms- the value for thelatencyP99Msrecord componentlatencyMaxMs- the value for thelatencyMaxMsrecord componentrecentDocIds- the value for therecentDocIdsrecord componenterrorCount- the value for theerrorCountrecord componentlastErrorMessage- the value for thelastErrorMessagerecord componentnoOpCount- the value for thenoOpCountrecord componentrejectCount- the value for therejectCountrecord componentsoftErrorCount- the value for thesoftErrorCountrecord componentrejectReasons- the value for therejectReasonsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
stepName
-
totalCount
public long totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
uniqueCount
public long uniqueCount()Returns the value of theuniqueCountrecord component.- Returns:
- the value of the
uniqueCountrecord component
-
duplicateCount
public long duplicateCount()Returns the value of theduplicateCountrecord component.- Returns:
- the value of the
duplicateCountrecord component
-
rateRecent
public double rateRecent()Returns the value of therateRecentrecord component.- Returns:
- the value of the
rateRecentrecord component
-
rateOverall
public double rateOverall()Returns the value of therateOverallrecord component.- Returns:
- the value of the
rateOverallrecord component
-
latencyP50Ms
public long latencyP50Ms()Returns the value of thelatencyP50Msrecord component.- Returns:
- the value of the
latencyP50Msrecord component
-
latencyP95Ms
public long latencyP95Ms()Returns the value of thelatencyP95Msrecord component.- Returns:
- the value of the
latencyP95Msrecord component
-
latencyP99Ms
public long latencyP99Ms()Returns the value of thelatencyP99Msrecord component.- Returns:
- the value of the
latencyP99Msrecord component
-
latencyMaxMs
public long latencyMaxMs()Returns the value of thelatencyMaxMsrecord component.- Returns:
- the value of the
latencyMaxMsrecord component
-
recentDocIds
Returns the value of therecentDocIdsrecord component.- Returns:
- the value of the
recentDocIdsrecord component
-
errorCount
public long errorCount()Returns the value of theerrorCountrecord component.- Returns:
- the value of the
errorCountrecord component
-
lastErrorMessage
Returns the value of thelastErrorMessagerecord component.- Returns:
- the value of the
lastErrorMessagerecord component
-
noOpCount
-
rejectCount
public long rejectCount()Returns the value of therejectCountrecord component.- Returns:
- the value of the
rejectCountrecord component
-
softErrorCount
public long softErrorCount()Returns the value of thesoftErrorCountrecord component.- Returns:
- the value of the
softErrorCountrecord component
-
rejectReasons
Returns the value of therejectReasonsrecord component.- Returns:
- the value of the
rejectReasonsrecord component
-