Record Class TurLLMTokenUsageAPI.UsageReport
java.lang.Object
java.lang.Record
com.viglet.turing.api.llm.tokenusage.TurLLMTokenUsageAPI.UsageReport
- Enclosing class:
TurLLMTokenUsageAPI
public static record TurLLMTokenUsageAPI.UsageReport(String periodStart, String periodEnd, List<TurLLMTokenUsageAPI.DailyUsageRow> daily, List<TurLLMTokenUsageAPI.MonthlySummaryRow> summary, long totalInputTokens, long totalOutputTokens, long totalTokens, long totalRequests)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUsageReport(String periodStart, String periodEnd, List<TurLLMTokenUsageAPI.DailyUsageRow> daily, List<TurLLMTokenUsageAPI.MonthlySummaryRow> summary, long totalInputTokens, long totalOutputTokens, long totalTokens, long totalRequests) Creates an instance of aUsageReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondaily()Returns the value of thedailyrecord 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 theperiodEndrecord component.Returns the value of theperiodStartrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalInputTokensrecord component.longReturns the value of thetotalOutputTokensrecord component.longReturns the value of thetotalRequestsrecord component.longReturns the value of thetotalTokensrecord component.
-
Constructor Details
-
UsageReport
public UsageReport(String periodStart, String periodEnd, List<TurLLMTokenUsageAPI.DailyUsageRow> daily, List<TurLLMTokenUsageAPI.MonthlySummaryRow> summary, long totalInputTokens, long totalOutputTokens, long totalTokens, long totalRequests) Creates an instance of aUsageReportrecord class.- Parameters:
periodStart- the value for theperiodStartrecord componentperiodEnd- the value for theperiodEndrecord componentdaily- the value for thedailyrecord componentsummary- the value for thesummaryrecord componenttotalInputTokens- the value for thetotalInputTokensrecord componenttotalOutputTokens- the value for thetotalOutputTokensrecord componenttotalTokens- the value for thetotalTokensrecord componenttotalRequests- the value for thetotalRequestsrecord 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. -
periodStart
Returns the value of theperiodStartrecord component.- Returns:
- the value of the
periodStartrecord component
-
periodEnd
Returns the value of theperiodEndrecord component.- Returns:
- the value of the
periodEndrecord component
-
daily
Returns the value of thedailyrecord component.- Returns:
- the value of the
dailyrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
totalInputTokens
public long totalInputTokens()Returns the value of thetotalInputTokensrecord component.- Returns:
- the value of the
totalInputTokensrecord component
-
totalOutputTokens
public long totalOutputTokens()Returns the value of thetotalOutputTokensrecord component.- Returns:
- the value of the
totalOutputTokensrecord component
-
totalTokens
public long totalTokens()Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-
totalRequests
public long totalRequests()Returns the value of thetotalRequestsrecord component.- Returns:
- the value of the
totalRequestsrecord component
-