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