Class: Cloudwatch::Sender::EC2
- Inherits:
-
Object
- Object
- Cloudwatch::Sender::EC2
- Defined in:
- lib/cloudwatch/sender/ec2.rb
Instance Method Summary collapse
-
#initialize ⇒ EC2
constructor
A new instance of EC2.
- #list_instances(key, value) ⇒ Object
Constructor Details
#initialize ⇒ EC2
Returns a new instance of EC2.
6 7 8 |
# File 'lib/cloudwatch/sender/ec2.rb', line 6 def initialize @ec2 = Aws::EC2::Client.new end |
Instance Method Details
#list_instances(key, value) ⇒ Object
10 11 12 |
# File 'lib/cloudwatch/sender/ec2.rb', line 10 def list_instances(key, value) list_instance_ids aws_resp(key, value) end |