Record Class GitHubTelemetryEvent
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.GitHubTelemetryEvent
@Generated("copilot-sdk-codegen")
public record GitHubTelemetryEvent(String kind, String createdAt, String modelCallId, Map<String,String> properties, Map<String,Double> metrics, String expAssignmentContext, Map<String,String> features, String sessionId, String copilotTrackingId, GitHubTelemetryClientInfo client)
extends Record
A single telemetry event in the runtime's native GitHub-shaped telemetry format, forwarded verbatim to opted-in hosts. The `restricted` flag on the enclosing GitHubTelemetryNotification distinguishes standard from restricted events; the payload shape is identical for both.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubTelemetryEvent(String kind, String createdAt, String modelCallId, Map<String, String> properties, Map<String, Double> metrics, String expAssignmentContext, Map<String, String> features, String sessionId, String copilotTrackingId, GitHubTelemetryClientInfo client) Creates an instance of aGitHubTelemetryEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.Returns the value of thecopilotTrackingIdrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpAssignmentContextrecord component.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.metrics()Returns the value of themetricsrecord component.Returns the value of themodelCallIdrecord component.Returns the value of thepropertiesrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GitHubTelemetryEvent
public GitHubTelemetryEvent(String kind, String createdAt, String modelCallId, Map<String, String> properties, Map<String, Double> metrics, String expAssignmentContext, Map<String, String> features, String sessionId, String copilotTrackingId, GitHubTelemetryClientInfo client) Creates an instance of aGitHubTelemetryEventrecord class.- Parameters:
kind- the value for thekindrecord componentcreatedAt- the value for thecreatedAtrecord componentmodelCallId- the value for themodelCallIdrecord componentproperties- the value for thepropertiesrecord componentmetrics- the value for themetricsrecord componentexpAssignmentContext- the value for theexpAssignmentContextrecord componentfeatures- the value for thefeaturesrecord componentsessionId- the value for thesessionIdrecord componentcopilotTrackingId- the value for thecopilotTrackingIdrecord componentclient- the value for theclientrecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
modelCallId
Returns the value of themodelCallIdrecord component.- Returns:
- the value of the
modelCallIdrecord component
-
properties
-
metrics
-
expAssignmentContext
Returns the value of theexpAssignmentContextrecord component.- Returns:
- the value of the
expAssignmentContextrecord component
-
features
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
copilotTrackingId
Returns the value of thecopilotTrackingIdrecord component.- Returns:
- the value of the
copilotTrackingIdrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-