Class: DatadogAPIClient::V1::Series

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/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.



43
44
45
# File 'lib/datadog_api_client/v1/models/series.rb', line 43

def additional_properties
  @additional_properties
end

#hostObject

The name of the host that produced the metric.



26
27
28
# File 'lib/datadog_api_client/v1/models/series.rb', line 26

def host
  @host
end

#intervalObject

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



29
30
31
# File 'lib/datadog_api_client/v1/models/series.rb', line 29

def interval
  @interval
end

#metricObject

The name of the timeseries.



32
33
34
# File 'lib/datadog_api_client/v1/models/series.rb', line 32

def metric
  @metric
end

#pointsObject

Points relating to a metric. All points must be tuples 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/v1/models/series.rb', line 35

def points
  @points
end

#tagsObject

A list of tags associated with the metric.



38
39
40
# File 'lib/datadog_api_client/v1/models/series.rb', line 38

def tags
  @tags
end

#typeObject

The type of the metric. Valid types are “”,‘count`, `gauge`, and `rate`.



41
42
43
# File 'lib/datadog_api_client/v1/models/series.rb', line 41

def type
  @type
end