Class: Cloudwatch::Sender::Fetcher::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudwatch/sender/fetcher/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(components, namespace) ⇒ Base

Returns a new instance of Base.



5
6
7
8
# File 'lib/cloudwatch/sender/fetcher/base.rb', line 5

def initialize(components, namespace)
  @components = components
  @namespace  = namespace
end

Instance Method Details

#retrieve(component_meta) ⇒ Object



10
11
12
13
14
# File 'lib/cloudwatch/sender/fetcher/base.rb', line 10

def retrieve(component_meta)
  component_meta["metrics"].each do |metric|
    metric_type(component_meta, metric)
  end
end