Record Class TurLLMTokenUsageAPI.DailyUsageRow
java.lang.Object
java.lang.Record
com.viglet.turing.api.llm.tokenusage.TurLLMTokenUsageAPI.DailyUsageRow
- Enclosing class:
TurLLMTokenUsageAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinputTokensrecord component.Returns the value of theinstanceIdrecord component.Returns the value of theinstanceTitlerecord component.Returns the value of themodelNamerecord component.longReturns the value of theoutputTokensrecord component.longReturns the value of therequestCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalTokensrecord component.vendorId()Returns the value of thevendorIdrecord component.
-
Constructor Details
-
DailyUsageRow
public DailyUsageRow(String date, String instanceId, String instanceTitle, String vendorId, String modelName, long inputTokens, long outputTokens, long totalTokens, long requestCount) Creates an instance of aDailyUsageRowrecord class.- Parameters:
date- the value for thedaterecord componentinstanceId- the value for theinstanceIdrecord componentinstanceTitle- the value for theinstanceTitlerecord componentvendorId- the value for thevendorIdrecord componentmodelName- the value for themodelNamerecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componenttotalTokens- the value for thetotalTokensrecord componentrequestCount- the value for therequestCountrecord 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. -
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
instanceTitle
Returns the value of theinstanceTitlerecord component.- Returns:
- the value of the
instanceTitlerecord component
-
vendorId
Returns the value of thevendorIdrecord component.- Returns:
- the value of the
vendorIdrecord component
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
inputTokens
public long inputTokens()Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
public long outputTokens()Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
totalTokens
public long totalTokens()Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-
requestCount
public long requestCount()Returns the value of therequestCountrecord component.- Returns:
- the value of the
requestCountrecord component
-