Class: DatadogAPIClient::V2::SpansCompute

Inherits:
Object
  • Object
show all
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, and timeseries computes must use the same interval. To get both totals and timeseries, send separate requests.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



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

def additional_properties
  @additional_properties
end

#aggregation ⇒ Object

An aggregation function.



27
28
29
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 27

def aggregation
  @aggregation
end

#interval ⇒ Object

The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points.



31
32
33
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 31

def interval
  @interval
end

#metric ⇒ Object

The metric to use.



34
35
36
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 34

def metric
  @metric
end

#type ⇒ Object

The type of compute.



37
38
39
# File 'lib/datadog_api_client/v2/models/spans_compute.rb', line 37

def type
  @type
end