Package com.github.copilot.sdk.generated
Record Class ModelCallFailureEvent.ModelCallFailureEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.ModelCallFailureEvent.ModelCallFailureEventData
- Enclosing class:
- ModelCallFailureEvent
public static record ModelCallFailureEvent.ModelCallFailureEventData(String model, String initiator, String apiCallId, String providerCallId, Long statusCode, Double durationMs, ModelCallFailureSource source, String errorMessage)
extends Record
Data payload for
ModelCallFailureEvent.-
Constructor Summary
ConstructorsConstructorDescriptionModelCallFailureEventData(String model, String initiator, String apiCallId, String providerCallId, Long statusCode, Double durationMs, ModelCallFailureSource source, String errorMessage) Creates an instance of aModelCallFailureEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiCallIdrecord component.Returns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinitiatorrecord component.model()Returns the value of themodelrecord component.Returns the value of theproviderCallIdrecord component.source()Returns the value of thesourcerecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelCallFailureEventData
public ModelCallFailureEventData(String model, String initiator, String apiCallId, String providerCallId, Long statusCode, Double durationMs, ModelCallFailureSource source, String errorMessage) Creates an instance of aModelCallFailureEventDatarecord class.- Parameters:
model- the value for themodelrecord componentinitiator- the value for theinitiatorrecord componentapiCallId- the value for theapiCallIdrecord componentproviderCallId- the value for theproviderCallIdrecord componentstatusCode- the value for thestatusCoderecord componentdurationMs- the value for thedurationMsrecord componentsource- the value for thesourcerecord componenterrorMessage- the value for theerrorMessagerecord 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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
initiator
Returns the value of theinitiatorrecord component.- Returns:
- the value of the
initiatorrecord component
-
apiCallId
Returns the value of theapiCallIdrecord component.- Returns:
- the value of the
apiCallIdrecord component
-
providerCallId
Returns the value of theproviderCallIdrecord component.- Returns:
- the value of the
providerCallIdrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
durationMs
Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-