Record Class UsageMetricsAgentMetric
java.lang.Object
java.lang.Record
com.github.copilot.generated.UsageMetricsAgentMetric
@Generated("copilot-sdk-codegen")
public record UsageMetricsAgentMetric(String agentName, String agentDisplayName, Long totalApiDurationMs, Double totalNanoAiu, Map<String, UsageMetricsModelMetric> modelMetrics)
extends Record
Usage attributed to one agent instance, including its identity, API duration, AI units, and per-model breakdown.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUsageMetricsAgentMetric(String agentName, String agentDisplayName, Long totalApiDurationMs, Double totalNanoAiu, Map<String, UsageMetricsModelMetric> modelMetrics) Creates an instance of aUsageMetricsAgentMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentDisplayNamerecord component.Returns the value of theagentNamerecord 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 themodelMetricsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalApiDurationMsrecord component.Returns the value of thetotalNanoAiurecord component.
-
Constructor Details
-
UsageMetricsAgentMetric
public UsageMetricsAgentMetric(String agentName, String agentDisplayName, Long totalApiDurationMs, Double totalNanoAiu, Map<String, UsageMetricsModelMetric> modelMetrics) Creates an instance of aUsageMetricsAgentMetricrecord class.- Parameters:
agentName- the value for theagentNamerecord componentagentDisplayName- the value for theagentDisplayNamerecord componenttotalApiDurationMs- the value for thetotalApiDurationMsrecord componenttotalNanoAiu- the value for thetotalNanoAiurecord componentmodelMetrics- the value for themodelMetricsrecord 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). -
agentName
Returns the value of theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
agentDisplayName
Returns the value of theagentDisplayNamerecord component.- Returns:
- the value of the
agentDisplayNamerecord component
-
totalApiDurationMs
Returns the value of thetotalApiDurationMsrecord component.- Returns:
- the value of the
totalApiDurationMsrecord component
-
totalNanoAiu
Returns the value of thetotalNanoAiurecord component.- Returns:
- the value of the
totalNanoAiurecord component
-
modelMetrics
Returns the value of themodelMetricsrecord component.- Returns:
- the value of the
modelMetricsrecord component
-