Class: ManageEngine::APMMetricsStore

Inherits:
Object
  • Object
show all
Defined in:
lib/agent/metrics/am_metricstore.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAPMMetricsStore

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

#metricsObject

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_dupObject



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