Class: Cloudwatch::Sender::MetricDefinition

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

Class Method Summary collapse

Class Method Details

.metric_type(components) ⇒ Object



4
5
6
7
8
9
# File 'lib/cloudwatch/sender/metric_definition.rb', line 4

def self.metric_type(components)
  components["metric_types"].each do |component_meta|
    namespace = component_meta["namespace"]
    Cloudwatch::Sender::Fetcher::Base.new(components, namespace).retrieve component_meta
  end
end