Class: Cloudwatch::Sender::Fetcher::EC2
- Inherits:
-
Object
- Object
- Cloudwatch::Sender::Fetcher::EC2
- Defined in:
- lib/cloudwatch/sender/fetcher/ec2.rb
Instance Method Summary collapse
-
#initialize(cloudwatch, sender) ⇒ EC2
constructor
A new instance of EC2.
- #metrics(component_meta, metric) ⇒ Object
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(, metric) ec2_metrics(instance_list(), , metric) end |