Package codes.grow.packages.datadogapm
Record Class SpanCompute
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.SpanCompute
- Record Components:
aggregation- one of theAGGREGATION_*constantsmetric- measure, e.g.@duration(nullfor count)type-total(default whennull) ortimeseries(all computes must use the same type and interval)interval- time bucket for timeseries, e.g.5m, ornull
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringavg.static final Stringcardinality.static final Stringcount.static final Stringmax.static final Stringmedian.static final Stringmin.static final Stringpc75.static final Stringpc90.static final Stringpc95.static final Stringpc98.static final Stringpc99.static final Stringsum. -
Constructor Summary
ConstructorsConstructorDescriptionSpanCompute(String aggregation, String metric, String type, String interval) Validates the aggregation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interval()Returns the value of theintervalrecord component.metric()Returns the value of themetricrecord component.static SpanComputeA total compute without a metric (for examplecount).static SpanComputeA total compute over a metric.static SpanComputetimeseries(String aggregation, String metric, String interval) A timeseries compute.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
AGGREGATION_COUNT
count.- See Also:
-
AGGREGATION_CARDINALITY
cardinality.- See Also:
-
AGGREGATION_PC75
pc75.- See Also:
-
AGGREGATION_PC90
pc90.- See Also:
-
AGGREGATION_PC95
pc95.- See Also:
-
AGGREGATION_PC98
pc98.- See Also:
-
AGGREGATION_PC99
pc99.- See Also:
-
AGGREGATION_SUM
sum.- See Also:
-
AGGREGATION_MIN
min.- See Also:
-
AGGREGATION_MAX
max.- See Also:
-
AGGREGATION_AVG
avg.- See Also:
-
AGGREGATION_MEDIAN
median.- See Also:
-
-
Constructor Details
-
SpanCompute
Validates the aggregation.- Parameters:
aggregation- aggregationmetric- metrictype- typeinterval- interval
-
-
Method Details
-
of
A total compute without a metric (for examplecount).- Parameters:
aggregation- aggregation- Returns:
- compute
-
of
A total compute over a metric.- Parameters:
aggregation- aggregationmetric- metric, e.g.@duration- Returns:
- compute
-
timeseries
A timeseries compute.- Parameters:
aggregation- aggregationmetric- metric ornullinterval- bucket, e.g.5m- Returns:
- compute
-
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). -
aggregation
Returns the value of theaggregationrecord component.- Returns:
- the value of the
aggregationrecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-