Package dev.dokimos.server.dto.v1
Record Class TraceSummary
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TraceSummary
public record TraceSummary(UUID id, String traceId, UUID projectId, String rootSpanName, int spanCount, Instant createdAt, Instant expiresAt)
extends Record
Compact view of a
Trace for the list endpoint, without its spans.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.static TraceSummaryfinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theprojectIdrecord component.Returns the value of therootSpanNamerecord component.intReturns the value of thespanCountrecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.
-
Constructor Details
-
TraceSummary
public TraceSummary(UUID id, String traceId, UUID projectId, String rootSpanName, int spanCount, Instant createdAt, Instant expiresAt) Creates an instance of aTraceSummaryrecord class.- Parameters:
id- the value for theidrecord componenttraceId- the value for thetraceIdrecord componentprojectId- the value for theprojectIdrecord componentrootSpanName- the value for therootSpanNamerecord componentspanCount- the value for thespanCountrecord componentcreatedAt- the value for thecreatedAtrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
from
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
rootSpanName
Returns the value of therootSpanNamerecord component.- Returns:
- the value of the
rootSpanNamerecord component
-
spanCount
public int spanCount()Returns the value of thespanCountrecord component.- Returns:
- the value of the
spanCountrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-