Class: Bosh::Monitor::Metric
- Inherits:
-
Object
- Object
- Bosh::Monitor::Metric
- Defined in:
- lib/bosh/monitor/metric.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, timestamp, tags) ⇒ Metric
constructor
A new instance of Metric.
Constructor Details
#initialize(name, value, timestamp, tags) ⇒ Metric
Returns a new instance of Metric.
9 10 11 12 13 14 |
# File 'lib/bosh/monitor/metric.rb', line 9 def initialize(name, value, , ) @name = name @value = value @timestamp = @tags = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/bosh/monitor/metric.rb', line 4 def name @name end |
#tags ⇒ Object
Returns the value of attribute tags.
7 8 9 |
# File 'lib/bosh/monitor/metric.rb', line 7 def @tags end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/bosh/monitor/metric.rb', line 6 def @timestamp end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/bosh/monitor/metric.rb', line 5 def value @value end |