Class: DatadogAPIClient::V2::MetricSeries
- Inherits:
 - 
      Object
      
        
- Object
 - DatadogAPIClient::V2::MetricSeries
 
 
- 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
- 
  
    
      #additional_properties  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute additional_properties.
 - 
  
    
      #interval  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
If the type of the metric is rate or count, define the corresponding interval in seconds.
 - 
  
    
      #metadata  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Metadata for the metric.
 - 
  
    
      #metric  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The name of the timeseries.
 - 
  
    
      #points  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Points relating to a metric.
 - 
  
    
      #resources  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of resources to associate with this metric.
 - 
  
    
      #source_type_name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The source type name.
 - 
  
    
      #tags  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of tags associated with the metric.
 - 
  
    
      #type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of metric.
 - 
  
    
      #unit  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The unit of point value.
 
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
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  | 
  
#interval ⇒ Object
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  | 
  
#metadata ⇒ Object
Metadata for the metric.
      29 30 31  | 
    
      # File 'lib/datadog_api_client/v2/models/metric_series.rb', line 29 def @metadata end  | 
  
#metric ⇒ Object
The name of the timeseries.
      32 33 34  | 
    
      # File 'lib/datadog_api_client/v2/models/metric_series.rb', line 32 def metric @metric end  | 
  
#points ⇒ Object
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  | 
  
#resources ⇒ Object
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_name ⇒ Object
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  | 
  
#tags ⇒ Object
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 end  | 
  
#type ⇒ Object
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  | 
  
#unit ⇒ Object
The unit of point value.
      50 51 52  | 
    
      # File 'lib/datadog_api_client/v2/models/metric_series.rb', line 50 def unit @unit end  |