Class: ManageEngine::APMMetricsStore
- Inherits:
-
Object
- Object
- ManageEngine::APMMetricsStore
- Defined in:
- lib/agent/metrics/am_metricstore.rb
Instance Attribute Summary collapse
-
#metrics ⇒ Object
Returns the value of attribute metrics.
Instance Method Summary collapse
-
#initialize ⇒ APMMetricsStore
constructor
A new instance of APMMetricsStore.
- #metrics_dup ⇒ Object
- #remove(keys) ⇒ Object
- #removeData(key) ⇒ Object
Constructor Details
#initialize ⇒ APMMetricsStore
Returns a new instance of APMMetricsStore.
6 7 8 |
# File 'lib/agent/metrics/am_metricstore.rb', line 6 def initialize @metrics = Hash.new end |
Instance Attribute Details
#metrics ⇒ Object
Returns the value of attribute metrics.
5 6 7 |
# File 'lib/agent/metrics/am_metricstore.rb', line 5 def metrics @metrics end |
Instance Method Details
#metrics_dup ⇒ Object
16 17 18 |
# File 'lib/agent/metrics/am_metricstore.rb', line 16 def metrics_dup @metrics.dup end |
#remove(keys) ⇒ Object
10 11 12 13 14 |
# File 'lib/agent/metrics/am_metricstore.rb', line 10 def remove keys if keys!=nil keys.each {|key| @metrics.delete("#{key}")} end end |
#removeData(key) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/agent/metrics/am_metricstore.rb', line 20 def removeData key # if @metrics.has_key?(key) # val = @metrics[key] # val = val.drop(end_indx) # @metrics[key]=val # end @metrics.delete(key) end |