Class: DatadogAPIClient::V2::MetricSeries

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

Overview

A metric to submit to Datadog. See [Datadog metrics](docs.datadoghq.com/developers/metrics/#custom-metrics-properties).

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



52
53
54
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 52

def additional_properties
  @additional_properties
end

#intervalObject

If the type of the metric is rate or count, define the corresponding interval in seconds.



26
27
28
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 26

def interval
  @interval
end

#metadataObject

Metadata for the metric.



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

def 
  @metadata
end

#metricObject

The name of the timeseries.



32
33
34
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 32

def metric
  @metric
end

#pointsObject

Points relating to a metric. All points must be objects with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past.



35
36
37
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 35

def points
  @points
end

#resourcesObject

A list of resources to associate with this metric.



38
39
40
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 38

def resources
  @resources
end

#source_type_nameObject

The source type name.



41
42
43
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 41

def source_type_name
  @source_type_name
end

#tagsObject

A list of tags associated with the metric.



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

def tags
  @tags
end

#typeObject

The type of metric. The available types are ‘0` (unspecified), `1` (count), `2` (rate), and `3` (gauge).



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

def type
  @type
end

#unitObject

The unit of point value.



50
51
52
# File 'lib/datadog_api_client/v2/models/metric_series.rb', line 50

def unit
  @unit
end