Class: Cloudwatch::Sender::Fetcher::EC2

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

Instance Method Summary collapse

Constructor Details

#initialize(cloudwatch, sender) ⇒ EC2

Returns a new instance of EC2.



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

def initialize(cloudwatch, sender)
  @cloudwatch = cloudwatch
  @sender = sender
end

Instance Method Details

#metrics(component_meta, metric) ⇒ Object



10
11
12
# File 'lib/cloudwatch/sender/fetcher/ec2.rb', line 10

def metrics(component_meta, metric)
  ec2_metrics(instance_list(component_meta), component_meta, metric)
end