Class: DatadogAPIClient::V2::SpansCompute
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::SpansCompute
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/spans_compute.rb
Overview
A compute rule to compute metrics or timeseries.
All computes in a request must have the same type (defaults to total when omitted),
and timeseries computes must use the same interval.
To get both totals and timeseries, send separate requests.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#aggregation ⇒ Object
readonly
An aggregation function.
-
#interval ⇒ Object
The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points.
-
#metric ⇒ Object
The metric to use.
-
#type ⇒ Object
The type of compute.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 40 def additional_properties @additional_properties end |
#aggregation ⇒ Object
An aggregation function.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 28 def aggregation @aggregation end |
#interval ⇒ Object
The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 32 def interval @interval end |
#metric ⇒ Object
The metric to use.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 35 def metric @metric end |
#type ⇒ Object
The type of compute.
38 39 40 |
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 38 def type @type end |