Package codes.grow.packages.datadogapm
Record Class DatadogSpansPage
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.DatadogSpansPage
- Record Components:
spans- spans of the pagenextCursor- cursor of the next page, empty on the last pagestatus-done, ortimeoutfor a partial resultwarnings- non-empty when the result is partial or the query was adjustedrequestId-meta.request_id, when present
public record DatadogSpansPage(List<DatadogSpan> spans, Optional<String> nextCursor, String status, List<DatadogQueryWarning> warnings, Optional<String> requestId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDatadogSpansPage(List<DatadogSpan> spans, Optional<String> nextCursor, String status, List<DatadogQueryWarning> warnings, Optional<String> requestId) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextCursorrecord component.Returns the value of therequestIdrecord component.spans()Returns the value of thespansrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
DatadogSpansPage
public DatadogSpansPage(List<DatadogSpan> spans, Optional<String> nextCursor, String status, List<DatadogQueryWarning> warnings, Optional<String> requestId) Copies the lists.- Parameters:
spans- spansnextCursor- next cursorstatus- statuswarnings- warningsrequestId- request id
-
-
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). -
spans
Returns the value of thespansrecord component.- Returns:
- the value of the
spansrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-