Package codes.grow.packages.datadogapm
Record Class SpanAggregateResult
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.SpanAggregateResult
- Record Components:
buckets- bucketsstatus-done, ortimeoutfor a partial resultwarnings- warnings of a partial or adjusted resultrequestId-meta.request_id, when present
public record SpanAggregateResult(List<SpanAggregateBucket> buckets, String status, List<DatadogQueryWarning> warnings, Optional<String> requestId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpanAggregateResult(List<SpanAggregateBucket> buckets, String status, List<DatadogQueryWarning> warnings, Optional<String> requestId) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionbuckets()Returns the value of thebucketsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequestIdrecord 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
-
SpanAggregateResult
public SpanAggregateResult(List<SpanAggregateBucket> buckets, String status, List<DatadogQueryWarning> warnings, Optional<String> requestId) Copies the lists.- Parameters:
buckets- bucketsstatus- 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). -
buckets
Returns the value of thebucketsrecord component.- Returns:
- the value of the
bucketsrecord 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
-