Package codes.grow.packages.datadoglogs
Record Class DatadogBucket
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogBucket
- Record Components:
by- facet values of the bucket (empty without group-by); values areString,LongorDoublecomputes- results keyedc0,c1, … in compute order; values areDouble,StringorList<DatadogTimeseriesPoint>
-
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.Returns a numeric compute result.Returns a string compute result.timeseries(String key) Returns a timeseries compute result.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatadogBucket
Creates a bucket; maps are copied.- Parameters:
by- facet valuescomputes- results
-
-
Method Details
-
number
Returns a numeric compute result.- Parameters:
key- compute key such asc0- Returns:
- the number, or empty when absent or not a number
-
text
Returns a string compute result.- Parameters:
key- compute key- Returns:
- the text, or empty
-
timeseries
Returns a timeseries compute result.- Parameters:
key- compute key- Returns:
- the points, or an empty list
-
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
-