Record Class AssistantUsageEvent.AssistantUsageEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.AssistantUsageEvent.AssistantUsageEventData
- Enclosing class:
AssistantUsageEvent
public static record AssistantUsageEvent.AssistantUsageEventData(AiCreditsStatus aiCreditsStatus, String model, ModelProviderRef provider, String modelDisplayName, UsageAccountingIdentity accounting, 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, String byokKind, String modelProvider, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, Long requestBodyBytes, Long requestBodyWireBytes, ModelCallRequestBodyEncoding requestBodyEncoding, ModelCallWebSocketFallbackReason websocketFallbackReason, Long websocketFallbackAfterMs, ModelCallWebSocketFallbackErrorKind websocketFallbackErrorKind, Long websocketFallbackStatusCode, Long websocketFallbackCloseCode, Boolean websocketFallbackReconnectAttempted, Boolean websocketFallbackStartedThisCall, 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(AiCreditsStatus aiCreditsStatus, String model, ModelProviderRef provider, String modelDisplayName, UsageAccountingIdentity accounting, 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, String byokKind, String modelProvider, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, Long requestBodyBytes, Long requestBodyWireBytes, ModelCallRequestBodyEncoding requestBodyEncoding, ModelCallWebSocketFallbackReason websocketFallbackReason, Long websocketFallbackAfterMs, ModelCallWebSocketFallbackErrorKind websocketFallbackErrorKind, Long websocketFallbackStatusCode, Long websocketFallbackCloseCode, Boolean websocketFallbackReconnectAttempted, Boolean websocketFallbackStartedThisCall, 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 theaccountingrecord component.Returns the value of theaiCreditsStatusrecord component.Returns the value of theapiCallIdrecord component.Returns the value of theapiEndpointrecord component.Returns the value of theavailableToolCountrecord component.byokKind()Returns the value of thebyokKindrecord 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 themodelDisplayNamerecord component.Returns the value of themodelProviderrecord 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.provider()Returns the value of theproviderrecord 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.Returns the value of therequestBodyBytesrecord component.Returns the value of therequestBodyEncodingrecord component.Returns the value of therequestBodyWireBytesrecord 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.Returns the value of thewebsocketFallbackAfterMsrecord component.Returns the value of thewebsocketFallbackCloseCoderecord component.Returns the value of thewebsocketFallbackErrorKindrecord component.Returns the value of thewebsocketFallbackReasonrecord component.Returns the value of thewebsocketFallbackReconnectAttemptedrecord component.Returns the value of thewebsocketFallbackStartedThisCallrecord component.Returns the value of thewebsocketFallbackStatusCoderecord component.
-
Constructor Details
-
AssistantUsageEventData
public AssistantUsageEventData(AiCreditsStatus aiCreditsStatus, String model, ModelProviderRef provider, String modelDisplayName, UsageAccountingIdentity accounting, 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, String byokKind, String modelProvider, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, Long requestBodyBytes, Long requestBodyWireBytes, ModelCallRequestBodyEncoding requestBodyEncoding, ModelCallWebSocketFallbackReason websocketFallbackReason, Long websocketFallbackAfterMs, ModelCallWebSocketFallbackErrorKind websocketFallbackErrorKind, Long websocketFallbackStatusCode, Long websocketFallbackCloseCode, Boolean websocketFallbackReconnectAttempted, Boolean websocketFallbackStartedThisCall, 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:
aiCreditsStatus- the value for theaiCreditsStatusrecord componentmodel- the value for themodelrecord componentprovider- the value for theproviderrecord componentmodelDisplayName- the value for themodelDisplayNamerecord componentaccounting- the value for theaccountingrecord 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 componentbyokKind- the value for thebyokKindrecord componentmodelProvider- the value for themodelProviderrecord 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 componentrequestBodyBytes- the value for therequestBodyBytesrecord componentrequestBodyWireBytes- the value for therequestBodyWireBytesrecord componentrequestBodyEncoding- the value for therequestBodyEncodingrecord componentwebsocketFallbackReason- the value for thewebsocketFallbackReasonrecord componentwebsocketFallbackAfterMs- the value for thewebsocketFallbackAfterMsrecord componentwebsocketFallbackErrorKind- the value for thewebsocketFallbackErrorKindrecord componentwebsocketFallbackStatusCode- the value for thewebsocketFallbackStatusCoderecord componentwebsocketFallbackCloseCode- the value for thewebsocketFallbackCloseCoderecord componentwebsocketFallbackReconnectAttempted- the value for thewebsocketFallbackReconnectAttemptedrecord componentwebsocketFallbackStartedThisCall- the value for thewebsocketFallbackStartedThisCallrecord 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). -
aiCreditsStatus
Returns the value of theaiCreditsStatusrecord component.- Returns:
- the value of the
aiCreditsStatusrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
modelDisplayName
Returns the value of themodelDisplayNamerecord component.- Returns:
- the value of the
modelDisplayNamerecord component
-
accounting
Returns the value of theaccountingrecord component.- Returns:
- the value of the
accountingrecord 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
-
byokKind
Returns the value of thebyokKindrecord component.- Returns:
- the value of the
byokKindrecord component
-
modelProvider
Returns the value of themodelProviderrecord component.- Returns:
- the value of the
modelProviderrecord 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
-
requestBodyBytes
Returns the value of therequestBodyBytesrecord component.- Returns:
- the value of the
requestBodyBytesrecord component
-
requestBodyWireBytes
Returns the value of therequestBodyWireBytesrecord component.- Returns:
- the value of the
requestBodyWireBytesrecord component
-
requestBodyEncoding
Returns the value of therequestBodyEncodingrecord component.- Returns:
- the value of the
requestBodyEncodingrecord component
-
websocketFallbackReason
Returns the value of thewebsocketFallbackReasonrecord component.- Returns:
- the value of the
websocketFallbackReasonrecord component
-
websocketFallbackAfterMs
Returns the value of thewebsocketFallbackAfterMsrecord component.- Returns:
- the value of the
websocketFallbackAfterMsrecord component
-
websocketFallbackErrorKind
Returns the value of thewebsocketFallbackErrorKindrecord component.- Returns:
- the value of the
websocketFallbackErrorKindrecord component
-
websocketFallbackStatusCode
Returns the value of thewebsocketFallbackStatusCoderecord component.- Returns:
- the value of the
websocketFallbackStatusCoderecord component
-
websocketFallbackCloseCode
Returns the value of thewebsocketFallbackCloseCoderecord component.- Returns:
- the value of the
websocketFallbackCloseCoderecord component
-
websocketFallbackReconnectAttempted
Returns the value of thewebsocketFallbackReconnectAttemptedrecord component.- Returns:
- the value of the
websocketFallbackReconnectAttemptedrecord component
-
websocketFallbackStartedThisCall
Returns the value of thewebsocketFallbackStartedThisCallrecord component.- Returns:
- the value of the
websocketFallbackStartedThisCallrecord 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
-