Package su.onno.observability
Record Class BrowserTelemetryController.BrowserEvent
java.lang.Object
java.lang.Record
su.onno.observability.BrowserTelemetryController.BrowserEvent
- Enclosing class:
BrowserTelemetryController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionsrecord component.Returns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of theoccurredAtrecord component.outcome()Returns the value of theoutcomerecord component.route()Returns the value of therouterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrowserEvent
public BrowserEvent(String id, String name, Instant occurredAt, String outcome, Long durationMs, String route, Map<String, String> dimensions) Creates an instance of aBrowserEventrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentoccurredAt- the value for theoccurredAtrecord componentoutcome- the value for theoutcomerecord componentdurationMs- the value for thedurationMsrecord componentroute- the value for therouterecord componentdimensions- the value for thedimensionsrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
occurredAt
Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
durationMs
Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
dimensions
Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-