Class: Datadog::Core::Metrics::Metric
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Core::Metrics::Metric
- Defined in:
- lib/datadog/core/metrics/metric.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Metric
constructor
A new instance of Metric.
Constructor Details
#initialize(*args) ⇒ Metric
Returns a new instance of Metric.
7 8 9 10 |
# File 'lib/datadog/core/metrics/metric.rb', line 7 def initialize(*args) super self. = || {} end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/datadog/core/metrics/metric.rb', line 6 def name @name end |
#options ⇒ Object
Returns the value of attribute options
6 7 8 |
# File 'lib/datadog/core/metrics/metric.rb', line 6 def @options end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/datadog/core/metrics/metric.rb', line 6 def type @type end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/datadog/core/metrics/metric.rb', line 6 def value @value end |