Class SpansGroupBy

java.lang.Object
com.datadog.api.client.v2.model.SpansGroupBy

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SpansGroupBy extends Object
A group by rule.
  • Field Details

  • Constructor Details

    • SpansGroupBy

      public SpansGroupBy()
    • SpansGroupBy

      public SpansGroupBy(String facet)
  • Method Details

    • facet

      public SpansGroupBy facet(String facet)
    • getFacet

      public String getFacet()
      The name of the facet to use (required).
      Returns:
      facet
    • setFacet

      public void setFacet(String facet)
    • histogram

      public SpansGroupBy histogram(SpansGroupByHistogram histogram)
    • getHistogram

      @Nullable public SpansGroupByHistogram getHistogram()
      Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
      Returns:
      histogram
    • setHistogram

      public void setHistogram(SpansGroupByHistogram histogram)
    • limit

      public SpansGroupBy limit(Long limit)
    • getLimit

      @Nullable public Long getLimit()
      The maximum buckets to return for this group by.
      Returns:
      limit
    • setLimit

      public void setLimit(Long limit)
    • missing

      public SpansGroupBy missing(SpansGroupByMissing missing)
    • getMissing

      @Nullable public SpansGroupByMissing getMissing()
      The value to use for spans that don't have the facet used to group by.
      Returns:
      missing
    • setMissing

      public void setMissing(SpansGroupByMissing missing)
    • sort

      public SpansGroupBy sort(SpansAggregateSort sort)
    • getSort

      @Nullable public SpansAggregateSort getSort()
      A sort rule.
      Returns:
      sort
    • setSort

      public void setSort(SpansAggregateSort sort)
    • total

      public SpansGroupBy total(SpansGroupByTotal total)
    • getTotal

      @Nullable public SpansGroupByTotal getTotal()
      A resulting object to put the given computes in over all the matching records.
      Returns:
      total
    • setTotal

      public void setTotal(SpansGroupByTotal total)
    • putAdditionalProperty

      public SpansGroupBy putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      SpansGroupBy
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this SpansGroupBy object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object