Record Class UsageMetricsProviderModelMetric
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.UsageMetricsProviderModelMetric
@Generated("copilot-sdk-codegen")
public record UsageMetricsProviderModelMetric(ModelProviderRef provider, String modelId, String modelDisplayName, UsageMetricsModelMetric metrics)
extends Record
Usage for one recorded provider and model, without merging identical model IDs across providers.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUsageMetricsProviderModelMetric(ModelProviderRef provider, String modelId, String modelDisplayName, UsageMetricsModelMetric metrics) Creates an instance of aUsageMetricsProviderModelMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metrics()Returns the value of themetricsrecord component.Returns the value of themodelDisplayNamerecord component.modelId()Returns the value of themodelIdrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UsageMetricsProviderModelMetric
public UsageMetricsProviderModelMetric(ModelProviderRef provider, String modelId, String modelDisplayName, UsageMetricsModelMetric metrics) Creates an instance of aUsageMetricsProviderModelMetricrecord class.- Parameters:
provider- the value for theproviderrecord componentmodelId- the value for themodelIdrecord componentmodelDisplayName- the value for themodelDisplayNamerecord componentmetrics- the value for themetricsrecord 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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
modelDisplayName
Returns the value of themodelDisplayNamerecord component.- Returns:
- the value of the
modelDisplayNamerecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-