Class: DatadogAPIClient::V2::SpansGroupBy

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/spans_group_by.rb

Overview

A group by rule.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



49
50
51
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 49

def additional_properties
  @additional_properties
end

#facet ⇒ Object

The name of the facet to use (required).



25
26
27
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 25

def facet
  @facet
end

#histogram ⇒ Object

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.



29
30
31
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 29

def histogram
  @histogram
end

#limit ⇒ Object

The maximum buckets to return for this group by. A request can generate at most 10,000 groups. Nested group_by entries multiply, so the product of their limits must stay within that bound. For example, two entries with a limit of 100 each produce up to 10,000 groups. With a timeseries compute, the number of groups multiplied by the number of time buckets must not exceed 400,000.



36
37
38
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 36

def limit
  @limit
end

#missing ⇒ Object

The value to use for spans that don't have the facet used to group by.



39
40
41
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 39

def missing
  @missing
end

#sort ⇒ Object

A sort rule. With type: alphabetical (the default), buckets are sorted by facet value and only order is allowed. With type: measure, buckets are sorted by a computed value: set aggregation, and set metric unless the aggregation is count.



44
45
46
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 44

def sort
  @sort
end

#total ⇒ Object

A resulting object to put the given computes in over all the matching records.



47
48
49
# File 'lib/datadog_api_client/v2/models/spans_group_by.rb', line 47

def total
  @total
end