Package org.graylog2.telemetry.client
Record Class PosthogAPI.Event
java.lang.Object
java.lang.Record
org.graylog2.telemetry.client.PosthogAPI.Event
- Enclosing interface:
- PosthogAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PosthogAPI.EventReturns the value of thedistinctIdrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Event
public Event(String uuid, String timestamp, String distinctId, String event, Map<String, Object> properties) Creates an instance of aEventrecord class.- Parameters:
uuid- the value for theuuidrecord componenttimestamp- the value for thetimestamprecord componentdistinctId- the value for thedistinctIdrecord componentevent- the value for theeventrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
create
-
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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
distinctId
Returns the value of thedistinctIdrecord component.- Returns:
- the value of the
distinctIdrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-