Record Class ShutdownAgentMetric
java.lang.Object
java.lang.Record
com.github.copilot.generated.ShutdownAgentMetric
@Generated("copilot-sdk-codegen")
public record ShutdownAgentMetric(String agentName, String agentDisplayName, Long totalApiDurationMs, Double totalNanoAiu, Map<String, ShutdownModelMetric> modelMetrics)
extends Record
Usage attributed to one agent instance at session shutdown.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionShutdownAgentMetric(String agentName, String agentDisplayName, Long totalApiDurationMs, Double totalNanoAiu, Map<String, ShutdownModelMetric> modelMetrics) Creates an instance of aShutdownAgentMetricrecord 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
-
ShutdownAgentMetric
public ShutdownAgentMetric(String agentName, String agentDisplayName, Long totalApiDurationMs, Double totalNanoAiu, Map<String, ShutdownModelMetric> modelMetrics) Creates an instance of aShutdownAgentMetricrecord 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
-