Class: Datadog::Metrics::Metric
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Metrics::Metric
- Defined in:
- lib/ddtrace/metrics.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.
119 120 121 122 |
# File 'lib/ddtrace/metrics.rb', line 119 def initialize(*args) super self. = || {} end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
118 119 120 |
# File 'lib/ddtrace/metrics.rb', line 118 def name @name end |
#options ⇒ Object
Returns the value of attribute options
118 119 120 |
# File 'lib/ddtrace/metrics.rb', line 118 def @options end |
#type ⇒ Object
Returns the value of attribute type
118 119 120 |
# File 'lib/ddtrace/metrics.rb', line 118 def type @type end |
#value ⇒ Object
Returns the value of attribute value
118 119 120 |
# File 'lib/ddtrace/metrics.rb', line 118 def value @value end |