Package com.github.copilot.sdk.generated
Record Class SessionShutdownEvent.SessionShutdownEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.SessionShutdownEvent.SessionShutdownEventData
- Enclosing class:
- SessionShutdownEvent
public static record SessionShutdownEvent.SessionShutdownEventData(SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType shutdownType, String errorReason, Double totalPremiumRequests, Double totalApiDurationMs, Double sessionStartTime, SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataCodeChanges codeChanges, Map<String,SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue> modelMetrics, String currentModel, Double currentTokens, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens)
extends Record
Data payload for
SessionShutdownEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAggregate code change metrics for the sessionstatic final recordstatic enumWhether the session ended normally ("routine") or due to a crash/fatal error ("error") -
Constructor Summary
ConstructorsConstructorDescriptionSessionShutdownEventData(SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType shutdownType, String errorReason, Double totalPremiumRequests, Double totalApiDurationMs, Double sessionStartTime, SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataCodeChanges codeChanges, Map<String, SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue> modelMetrics, String currentModel, Double currentTokens, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens) Creates an instance of aSessionShutdownEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeChangesrecord component.Returns the value of theconversationTokensrecord component.Returns the value of thecurrentModelrecord component.Returns the value of thecurrentTokensrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorReasonrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themodelMetricsrecord component.Returns the value of thesessionStartTimerecord component.Returns the value of theshutdownTyperecord component.Returns the value of thesystemTokensrecord component.Returns the value of thetoolDefinitionsTokensrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalApiDurationMsrecord component.Returns the value of thetotalPremiumRequestsrecord component.
-
Constructor Details
-
SessionShutdownEventData
public SessionShutdownEventData(SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType shutdownType, String errorReason, Double totalPremiumRequests, Double totalApiDurationMs, Double sessionStartTime, SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataCodeChanges codeChanges, Map<String, SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue> modelMetrics, String currentModel, Double currentTokens, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens) Creates an instance of aSessionShutdownEventDatarecord class.- Parameters:
shutdownType- the value for theshutdownTyperecord componenterrorReason- the value for theerrorReasonrecord componenttotalPremiumRequests- the value for thetotalPremiumRequestsrecord componenttotalApiDurationMs- the value for thetotalApiDurationMsrecord componentsessionStartTime- the value for thesessionStartTimerecord componentcodeChanges- the value for thecodeChangesrecord componentmodelMetrics- the value for themodelMetricsrecord componentcurrentModel- the value for thecurrentModelrecord componentcurrentTokens- the value for thecurrentTokensrecord componentsystemTokens- the value for thesystemTokensrecord componentconversationTokens- the value for theconversationTokensrecord componenttoolDefinitionsTokens- the value for thetoolDefinitionsTokensrecord 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). -
shutdownType
public SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType shutdownType()Returns the value of theshutdownTyperecord component.- Returns:
- the value of the
shutdownTyperecord component
-
errorReason
Returns the value of theerrorReasonrecord component.- Returns:
- the value of the
errorReasonrecord component
-
totalPremiumRequests
Returns the value of thetotalPremiumRequestsrecord component.- Returns:
- the value of the
totalPremiumRequestsrecord component
-
totalApiDurationMs
Returns the value of thetotalApiDurationMsrecord component.- Returns:
- the value of the
totalApiDurationMsrecord component
-
sessionStartTime
Returns the value of thesessionStartTimerecord component.- Returns:
- the value of the
sessionStartTimerecord component
-
codeChanges
public SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataCodeChanges codeChanges()Returns the value of thecodeChangesrecord component.- Returns:
- the value of the
codeChangesrecord component
-
modelMetrics
public Map<String,SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue> modelMetrics()Returns the value of themodelMetricsrecord component.- Returns:
- the value of the
modelMetricsrecord component
-
currentModel
Returns the value of thecurrentModelrecord component.- Returns:
- the value of the
currentModelrecord component
-
currentTokens
Returns the value of thecurrentTokensrecord component.- Returns:
- the value of the
currentTokensrecord component
-
systemTokens
Returns the value of thesystemTokensrecord component.- Returns:
- the value of the
systemTokensrecord component
-
conversationTokens
Returns the value of theconversationTokensrecord component.- Returns:
- the value of the
conversationTokensrecord component
-
toolDefinitionsTokens
Returns the value of thetoolDefinitionsTokensrecord component.- Returns:
- the value of the
toolDefinitionsTokensrecord component
-