Record Class SessionUsageGetMetricsResult
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.SessionUsageGetMetricsResult
@Generated("copilot-sdk-codegen")
public record SessionUsageGetMetricsResult(Double totalPremiumRequestCost, Long totalUserRequests, Double totalApiDurationMs, Long sessionStartTime, SessionUsageGetMetricsResult.SessionUsageGetMetricsResultCodeChanges codeChanges, Map<String,SessionUsageGetMetricsResult.SessionUsageGetMetricsResultModelMetricsValue> modelMetrics, String currentModel, Long lastCallInputTokens, Long lastCallOutputTokens)
extends Record
Result for the
session.usage.getMetrics RPC method.- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAggregated code change metricsstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionSessionUsageGetMetricsResult(Double totalPremiumRequestCost, Long totalUserRequests, Double totalApiDurationMs, Long sessionStartTime, SessionUsageGetMetricsResult.SessionUsageGetMetricsResultCodeChanges codeChanges, Map<String, SessionUsageGetMetricsResult.SessionUsageGetMetricsResultModelMetricsValue> modelMetrics, String currentModel, Long lastCallInputTokens, Long lastCallOutputTokens) Creates an instance of aSessionUsageGetMetricsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 thesessionStartTimerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalApiDurationMsrecord component.Returns the value of thetotalPremiumRequestCostrecord component.Returns the value of thetotalUserRequestsrecord component.
-
Constructor Details
-
SessionUsageGetMetricsResult
public SessionUsageGetMetricsResult(Double totalPremiumRequestCost, Long totalUserRequests, Double totalApiDurationMs, Long sessionStartTime, SessionUsageGetMetricsResult.SessionUsageGetMetricsResultCodeChanges codeChanges, Map<String, SessionUsageGetMetricsResult.SessionUsageGetMetricsResultModelMetricsValue> modelMetrics, String currentModel, Long lastCallInputTokens, Long lastCallOutputTokens) Creates an instance of aSessionUsageGetMetricsResultrecord class.- Parameters:
totalPremiumRequestCost- the value for thetotalPremiumRequestCostrecord componenttotalUserRequests- the value for thetotalUserRequestsrecord 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 componentlastCallInputTokens- the value for thelastCallInputTokensrecord componentlastCallOutputTokens- the value for thelastCallOutputTokensrecord 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). -
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
-
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
public Map<String,SessionUsageGetMetricsResult.SessionUsageGetMetricsResultModelMetricsValue> 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
-
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
-