Package codes.grow.packages.datadogapm
Record Class SpanAggregateBucket
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.SpanAggregateBucket
- Record Components:
by- group-by values, e.g.{service=web}(empty without group-by); numbers areLongorDoublecomputes- results keyedc0,c1, ... in the order of the compute list: aDoublefor total computes, aList<SpanTimeseriesPoint>for timeseries
public record SpanAggregateBucket(Map<String,Object> by, Map<String,Object> computes)
extends Record
One bucket of an aggregation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionby()Returns the value of thebyrecord component.computes()Returns the value of thecomputesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpanAggregateBucket
Copies the maps.- Parameters:
by- group-by valuescomputes- results
-
-
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). -
by
Returns the value of thebyrecord component.- Returns:
- the value of the
byrecord component
-
computes
Returns the value of thecomputesrecord component.- Returns:
- the value of the
computesrecord component
-