Package codes.grow.packages.datadogapm
Record Class SpanGroupBy
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.SpanGroupBy
- Record Components:
facet- facet, e.g.service,resource_name,@http.status_codelimit- maximum number of groups (null: Datadog default 10)sort- group order ornullmissing- value used for spans without the facet (string or number) ornulltotal- adds a total bucket (true, or the bucket's value) ornullhistogram- buckets for a numeric facet ornull
public record SpanGroupBy(String facet, Integer limit, SpanGroupBy.Sort sort, Object missing, Object total, SpanGroupBy.Histogram histogram)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBuckets of a numeric facet.static final recordOrder of the groups. -
Constructor Summary
ConstructorsConstructorDescriptionSpanGroupBy(String facet, Integer limit, SpanGroupBy.Sort sort, Object missing, Object total, SpanGroupBy.Histogram histogram) Validates the facet. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.facet()Returns the value of thefacetrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehistogramrecord component.limit()Returns the value of thelimitrecord component.missing()Returns the value of themissingrecord component.static SpanGroupByGroups by a facet with the defaults.static SpanGroupByGroups by a facet with a group limit.sort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.
-
Constructor Details
-
SpanGroupBy
public SpanGroupBy(String facet, Integer limit, SpanGroupBy.Sort sort, Object missing, Object total, SpanGroupBy.Histogram histogram) Validates the facet.- Parameters:
facet- facetlimit- limitsort- sortmissing- missing valuetotal- totalhistogram- histogram
-
-
Method Details
-
of
Groups by a facet with the defaults.- Parameters:
facet- facet- Returns:
- group-by
-
of
Groups by a facet with a group limit.- Parameters:
facet- facetlimit- maximum groups- Returns:
- group-by
-
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). -
facet
Returns the value of thefacetrecord component.- Returns:
- the value of the
facetrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-
missing
Returns the value of themissingrecord component.- Returns:
- the value of the
missingrecord component
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
histogram
Returns the value of thehistogramrecord component.- Returns:
- the value of the
histogramrecord component
-