Record Class SessionUsageGetMetricsResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionUsageGetMetricsResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionUsageGetMetricsResult(AiCreditsStatus aiCreditsStatus, Double totalPremiumRequestCost, Long totalUserRequests, Double totalNanoAiu, Map<String, UsageMetricsTokenDetail> tokenDetails, Long totalApiDurationMs, OffsetDateTime sessionStartTime, UsageMetricsCodeChanges codeChanges, Map<String, UsageMetricsModelMetric> modelMetrics, List<UsageMetricsProviderModelMetric> providerModelMetrics, Map<String, UsageMetricsAgentMetric> agentMetrics, String currentModel, Long lastCallInputTokens, Long lastCallOutputTokens)
extends Record
Accumulated session usage metrics, including premium request cost, token counts, model breakdown, and code-change totals.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionUsageGetMetricsResult(AiCreditsStatus aiCreditsStatus, Double totalPremiumRequestCost, Long totalUserRequests, Double totalNanoAiu, Map<String, UsageMetricsTokenDetail> tokenDetails, Long totalApiDurationMs, OffsetDateTime sessionStartTime, UsageMetricsCodeChanges codeChanges, Map<String, UsageMetricsModelMetric> modelMetrics, List<UsageMetricsProviderModelMetric> providerModelMetrics, Map<String, UsageMetricsAgentMetric> agentMetrics, String currentModel, Long lastCallInputTokens, Long lastCallOutputTokens) Creates an instance of aSessionUsageGetMetricsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentMetricsrecord component.Returns the value of theaiCreditsStatusrecord component.Returns the value of thecodeChangesrecord component.Returns the value of thecurrentModelrecord 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 thelastCallInputTokensrecord component.Returns the value of thelastCallOutputTokensrecord component.Returns the value of themodelMetricsrecord component.Returns the value of theproviderModelMetricsrecord component.Returns the value of thesessionStartTimerecord component.Returns the value of thetokenDetailsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalApiDurationMsrecord component.Returns the value of thetotalNanoAiurecord component.Returns the value of thetotalPremiumRequestCostrecord component.Returns the value of thetotalUserRequestsrecord component.
-
Constructor Details
-
SessionUsageGetMetricsResult
public SessionUsageGetMetricsResult(AiCreditsStatus aiCreditsStatus, Double totalPremiumRequestCost, Long totalUserRequests, Double totalNanoAiu, Map<String, UsageMetricsTokenDetail> tokenDetails, Long totalApiDurationMs, OffsetDateTime sessionStartTime, UsageMetricsCodeChanges codeChanges, Map<String, UsageMetricsModelMetric> modelMetrics, List<UsageMetricsProviderModelMetric> providerModelMetrics, Map<String, UsageMetricsAgentMetric> agentMetrics, String currentModel, Long lastCallInputTokens, Long lastCallOutputTokens) Creates an instance of aSessionUsageGetMetricsResultrecord class.- Parameters:
aiCreditsStatus- the value for theaiCreditsStatusrecord componenttotalPremiumRequestCost- the value for thetotalPremiumRequestCostrecord componenttotalUserRequests- the value for thetotalUserRequestsrecord componenttotalNanoAiu- the value for thetotalNanoAiurecord componenttokenDetails- the value for thetokenDetailsrecord componenttotalApiDurationMs- the value for thetotalApiDurationMsrecord componentsessionStartTime- the value for thesessionStartTimerecord componentcodeChanges- the value for thecodeChangesrecord componentmodelMetrics- the value for themodelMetricsrecord componentproviderModelMetrics- the value for theproviderModelMetricsrecord componentagentMetrics- the value for theagentMetricsrecord componentcurrentModel- the value for thecurrentModelrecord componentlastCallInputTokens- the value for thelastCallInputTokensrecord componentlastCallOutputTokens- the value for thelastCallOutputTokensrecord 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
-
totalPremiumRequestCost
Returns the value of thetotalPremiumRequestCostrecord component.- Returns:
- the value of the
totalPremiumRequestCostrecord component
-
totalUserRequests
Returns the value of thetotalUserRequestsrecord component.- Returns:
- the value of the
totalUserRequestsrecord component
-
totalNanoAiu
Returns the value of thetotalNanoAiurecord component.- Returns:
- the value of the
totalNanoAiurecord component
-
tokenDetails
Returns the value of thetokenDetailsrecord component.- Returns:
- the value of the
tokenDetailsrecord 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
Returns the value of thecodeChangesrecord component.- Returns:
- the value of the
codeChangesrecord component
-
modelMetrics
Returns the value of themodelMetricsrecord component.- Returns:
- the value of the
modelMetricsrecord component
-
providerModelMetrics
Returns the value of theproviderModelMetricsrecord component.- Returns:
- the value of the
providerModelMetricsrecord component
-
agentMetrics
Returns the value of theagentMetricsrecord component.- Returns:
- the value of the
agentMetricsrecord component
-
currentModel
Returns the value of thecurrentModelrecord component.- Returns:
- the value of the
currentModelrecord component
-
lastCallInputTokens
Returns the value of thelastCallInputTokensrecord component.- Returns:
- the value of the
lastCallInputTokensrecord component
-
lastCallOutputTokens
Returns the value of thelastCallOutputTokensrecord component.- Returns:
- the value of the
lastCallOutputTokensrecord component
-