Record Class AssistantUsageEvent.AssistantUsageEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.AssistantUsageEvent.AssistantUsageEventData
- Enclosing class:
AssistantUsageEvent
public static record AssistantUsageEvent.AssistantUsageEventData(String model, Long inputTokens, Long outputTokens, Long cacheReadTokens, Long cacheWriteTokens, OffsetDateTime cacheExpiresAt, Long reasoningTokens, Long thinkingDroppedBlocks, List<String> thinkingDroppedReasons, Double cost, Long duration, Double timeToFirstTokenMs, Double outputTtftMs, Double interTokenLatencyMs, String initiator, String interactionType, Boolean isByok, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, String apiCallId, String providerCallId, String serviceRequestId, Boolean rte, AssistantUsageApiEndpoint apiEndpoint, String parentToolCallId, Map<String, AssistantUsageQuotaSnapshot> quotaSnapshots, AssistantUsageCopilotUsage copilotUsage, String reasoningEffort, ReasoningSummary reasoningSummary, Long availableToolCount, Long toolTokenCount, String frontierSource, Long cacheTtlSeconds, Boolean cacheDetailsReported, Long numToolCalls, Map<String,Long> toolCounts, String finishReason, Boolean contentFilterTriggered, FusionAttribution fusion)
extends Record
Data payload for
AssistantUsageEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantUsageEventData(String model, Long inputTokens, Long outputTokens, Long cacheReadTokens, Long cacheWriteTokens, OffsetDateTime cacheExpiresAt, Long reasoningTokens, Long thinkingDroppedBlocks, List<String> thinkingDroppedReasons, Double cost, Long duration, Double timeToFirstTokenMs, Double outputTtftMs, Double interTokenLatencyMs, String initiator, String interactionType, Boolean isByok, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, String apiCallId, String providerCallId, String serviceRequestId, Boolean rte, AssistantUsageApiEndpoint apiEndpoint, String parentToolCallId, Map<String, AssistantUsageQuotaSnapshot> quotaSnapshots, AssistantUsageCopilotUsage copilotUsage, String reasoningEffort, ReasoningSummary reasoningSummary, Long availableToolCount, Long toolTokenCount, String frontierSource, Long cacheTtlSeconds, Boolean cacheDetailsReported, Long numToolCalls, Map<String, Long> toolCounts, String finishReason, Boolean contentFilterTriggered, FusionAttribution fusion) Creates an instance of aAssistantUsageEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptedPredictionTokensrecord component.Returns the value of theapiCallIdrecord component.Returns the value of theapiEndpointrecord component.Returns the value of theavailableToolCountrecord component.Returns the value of thecacheDetailsReportedrecord component.Returns the value of thecacheExpiresAtrecord component.Returns the value of thecacheReadTokensrecord component.Returns the value of thecacheTtlSecondsrecord component.Returns the value of thecacheWriteTokensrecord component.Returns the value of thecontentFilterTriggeredrecord component.Returns the value of thecopilotUsagerecord component.cost()Returns the value of thecostrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinishReasonrecord component.Returns the value of thefrontierSourcerecord component.fusion()Returns the value of thefusionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinitiatorrecord component.Returns the value of theinputTokensrecord component.Returns the value of theinteractionTyperecord component.Returns the value of theinterTokenLatencyMsrecord component.isAuto()Returns the value of theisAutorecord component.isByok()Returns the value of theisByokrecord component.Returns the value of themaxOutputTokensrecord component.Returns the value of themaxPromptTokensrecord component.model()Returns the value of themodelrecord component.Returns the value of thenumToolCallsrecord component.Returns the value of theoutputTokensrecord component.Returns the value of theoutputTtftMsrecord component.Returns the value of theparentToolCallIdrecord component.Returns the value of theproviderCallIdrecord component.Returns the value of thequotaSnapshotsrecord component.Returns the value of thereasoningEffortrecord component.Returns the value of thereasoningSummaryrecord component.Returns the value of thereasoningTokensrecord component.Returns the value of therejectedPredictionTokensrecord component.rte()Returns the value of therterecord component.Returns the value of theserviceRequestIdrecord component.Returns the value of thethinkingDroppedBlocksrecord component.Returns the value of thethinkingDroppedReasonsrecord component.Returns the value of thetimeToFirstTokenMsrecord component.Returns the value of thetoolCountsrecord component.Returns the value of thetoolTokenCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.
-
Constructor Details
-
AssistantUsageEventData
public AssistantUsageEventData(String model, Long inputTokens, Long outputTokens, Long cacheReadTokens, Long cacheWriteTokens, OffsetDateTime cacheExpiresAt, Long reasoningTokens, Long thinkingDroppedBlocks, List<String> thinkingDroppedReasons, Double cost, Long duration, Double timeToFirstTokenMs, Double outputTtftMs, Double interTokenLatencyMs, String initiator, String interactionType, Boolean isByok, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, String apiCallId, String providerCallId, String serviceRequestId, Boolean rte, AssistantUsageApiEndpoint apiEndpoint, String parentToolCallId, Map<String, AssistantUsageQuotaSnapshot> quotaSnapshots, AssistantUsageCopilotUsage copilotUsage, String reasoningEffort, ReasoningSummary reasoningSummary, Long availableToolCount, Long toolTokenCount, String frontierSource, Long cacheTtlSeconds, Boolean cacheDetailsReported, Long numToolCalls, Map<String, Long> toolCounts, String finishReason, Boolean contentFilterTriggered, FusionAttribution fusion) Creates an instance of aAssistantUsageEventDatarecord class.- Parameters:
model- the value for themodelrecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentcacheReadTokens- the value for thecacheReadTokensrecord componentcacheWriteTokens- the value for thecacheWriteTokensrecord componentcacheExpiresAt- the value for thecacheExpiresAtrecord componentreasoningTokens- the value for thereasoningTokensrecord componentthinkingDroppedBlocks- the value for thethinkingDroppedBlocksrecord componentthinkingDroppedReasons- the value for thethinkingDroppedReasonsrecord componentcost- the value for thecostrecord componentduration- the value for thedurationrecord componenttimeToFirstTokenMs- the value for thetimeToFirstTokenMsrecord componentoutputTtftMs- the value for theoutputTtftMsrecord componentinterTokenLatencyMs- the value for theinterTokenLatencyMsrecord componentinitiator- the value for theinitiatorrecord componentinteractionType- the value for theinteractionTyperecord componentisByok- the value for theisByokrecord componentisAuto- the value for theisAutorecord componentmaxPromptTokens- the value for themaxPromptTokensrecord componentmaxOutputTokens- the value for themaxOutputTokensrecord componentacceptedPredictionTokens- the value for theacceptedPredictionTokensrecord componentrejectedPredictionTokens- the value for therejectedPredictionTokensrecord componenttransport- the value for thetransportrecord componentapiCallId- the value for theapiCallIdrecord componentproviderCallId- the value for theproviderCallIdrecord componentserviceRequestId- the value for theserviceRequestIdrecord componentrte- the value for therterecord componentapiEndpoint- the value for theapiEndpointrecord componentparentToolCallId- the value for theparentToolCallIdrecord componentquotaSnapshots- the value for thequotaSnapshotsrecord componentcopilotUsage- the value for thecopilotUsagerecord componentreasoningEffort- the value for thereasoningEffortrecord componentreasoningSummary- the value for thereasoningSummaryrecord componentavailableToolCount- the value for theavailableToolCountrecord componenttoolTokenCount- the value for thetoolTokenCountrecord componentfrontierSource- the value for thefrontierSourcerecord componentcacheTtlSeconds- the value for thecacheTtlSecondsrecord componentcacheDetailsReported- the value for thecacheDetailsReportedrecord componentnumToolCalls- the value for thenumToolCallsrecord componenttoolCounts- the value for thetoolCountsrecord componentfinishReason- the value for thefinishReasonrecord componentcontentFilterTriggered- the value for thecontentFilterTriggeredrecord componentfusion- the value for thefusionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
inputTokens
Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
cacheReadTokens
Returns the value of thecacheReadTokensrecord component.- Returns:
- the value of the
cacheReadTokensrecord component
-
cacheWriteTokens
Returns the value of thecacheWriteTokensrecord component.- Returns:
- the value of the
cacheWriteTokensrecord component
-
cacheExpiresAt
Returns the value of thecacheExpiresAtrecord component.- Returns:
- the value of the
cacheExpiresAtrecord component
-
reasoningTokens
Returns the value of thereasoningTokensrecord component.- Returns:
- the value of the
reasoningTokensrecord component
-
thinkingDroppedBlocks
Returns the value of thethinkingDroppedBlocksrecord component.- Returns:
- the value of the
thinkingDroppedBlocksrecord component
-
thinkingDroppedReasons
-
cost
Returns the value of thecostrecord component.- Returns:
- the value of the
costrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
timeToFirstTokenMs
Returns the value of thetimeToFirstTokenMsrecord component.- Returns:
- the value of the
timeToFirstTokenMsrecord component
-
outputTtftMs
Returns the value of theoutputTtftMsrecord component.- Returns:
- the value of the
outputTtftMsrecord component
-
interTokenLatencyMs
Returns the value of theinterTokenLatencyMsrecord component.- Returns:
- the value of the
interTokenLatencyMsrecord component
-
initiator
Returns the value of theinitiatorrecord component.- Returns:
- the value of the
initiatorrecord component
-
interactionType
Returns the value of theinteractionTyperecord component.- Returns:
- the value of the
interactionTyperecord component
-
isByok
Returns the value of theisByokrecord component.- Returns:
- the value of the
isByokrecord component
-
isAuto
Returns the value of theisAutorecord component.- Returns:
- the value of the
isAutorecord component
-
maxPromptTokens
Returns the value of themaxPromptTokensrecord component.- Returns:
- the value of the
maxPromptTokensrecord component
-
maxOutputTokens
Returns the value of themaxOutputTokensrecord component.- Returns:
- the value of the
maxOutputTokensrecord component
-
acceptedPredictionTokens
Returns the value of theacceptedPredictionTokensrecord component.- Returns:
- the value of the
acceptedPredictionTokensrecord component
-
rejectedPredictionTokens
Returns the value of therejectedPredictionTokensrecord component.- Returns:
- the value of the
rejectedPredictionTokensrecord component
-
transport
Returns the value of thetransportrecord component.- Returns:
- the value of the
transportrecord component
-
apiCallId
Returns the value of theapiCallIdrecord component.- Returns:
- the value of the
apiCallIdrecord component
-
providerCallId
Returns the value of theproviderCallIdrecord component.- Returns:
- the value of the
providerCallIdrecord component
-
serviceRequestId
Returns the value of theserviceRequestIdrecord component.- Returns:
- the value of the
serviceRequestIdrecord component
-
rte
Returns the value of therterecord component.- Returns:
- the value of the
rterecord component
-
apiEndpoint
Returns the value of theapiEndpointrecord component.- Returns:
- the value of the
apiEndpointrecord component
-
parentToolCallId
Returns the value of theparentToolCallIdrecord component.- Returns:
- the value of the
parentToolCallIdrecord component
-
quotaSnapshots
Returns the value of thequotaSnapshotsrecord component.- Returns:
- the value of the
quotaSnapshotsrecord component
-
copilotUsage
Returns the value of thecopilotUsagerecord component.- Returns:
- the value of the
copilotUsagerecord component
-
reasoningEffort
Returns the value of thereasoningEffortrecord component.- Returns:
- the value of the
reasoningEffortrecord component
-
reasoningSummary
Returns the value of thereasoningSummaryrecord component.- Returns:
- the value of the
reasoningSummaryrecord component
-
availableToolCount
Returns the value of theavailableToolCountrecord component.- Returns:
- the value of the
availableToolCountrecord component
-
toolTokenCount
Returns the value of thetoolTokenCountrecord component.- Returns:
- the value of the
toolTokenCountrecord component
-
frontierSource
Returns the value of thefrontierSourcerecord component.- Returns:
- the value of the
frontierSourcerecord component
-
cacheTtlSeconds
Returns the value of thecacheTtlSecondsrecord component.- Returns:
- the value of the
cacheTtlSecondsrecord component
-
cacheDetailsReported
Returns the value of thecacheDetailsReportedrecord component.- Returns:
- the value of the
cacheDetailsReportedrecord component
-
numToolCalls
Returns the value of thenumToolCallsrecord component.- Returns:
- the value of the
numToolCallsrecord component
-
toolCounts
-
finishReason
Returns the value of thefinishReasonrecord component.- Returns:
- the value of the
finishReasonrecord component
-
contentFilterTriggered
Returns the value of thecontentFilterTriggeredrecord component.- Returns:
- the value of the
contentFilterTriggeredrecord component
-
fusion
Returns the value of thefusionrecord component.- Returns:
- the value of the
fusionrecord component
-