Package com.tnsai.reliability
Record Class Progress.CostUpdate
java.lang.Object
java.lang.Record
com.tnsai.reliability.Progress.CostUpdate
- Record Components:
spentUSD- cumulative recorded spendremainingUSD- spent vs. ceiling — empty when no ceiling set
- All Implemented Interfaces:
Progress
- Enclosing interface:
Progress
public static record Progress.CostUpdate(Instant at, BigDecimal spentUSD, Optional<BigDecimal> remainingUSD)
extends Record
implements Progress
Spend tick — the orchestrator emits this when a cost-tracking
integration reports new spend, so dashboards can plot against
the run's
RunConfig.costCeilingUSD.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.reliability.Progress
Progress.CheckpointSaved, Progress.CostUpdate, Progress.Heartbeat, Progress.RunAborted, Progress.RunCompleted, Progress.RunFailed, Progress.StepCompleted, Progress.StepStarted -
Constructor Summary
ConstructorsConstructorDescriptionCostUpdate(Instant at, BigDecimal spentUSD, Optional<BigDecimal> remainingUSD) Creates an instance of aCostUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theremainingUSDrecord component.spentUSD()Returns the value of thespentUSDrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CostUpdate
Creates an instance of aCostUpdaterecord class.- Parameters:
at- the value for theatrecord componentspentUSD- the value for thespentUSDrecord componentremainingUSD- the value for theremainingUSDrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
at
Returns the value of theatrecord component. -
spentUSD
Returns the value of thespentUSDrecord component.- Returns:
- the value of the
spentUSDrecord component
-
remainingUSD
Returns the value of theremainingUSDrecord component.- Returns:
- the value of the
remainingUSDrecord component
-