From f9d26321d2ece6ba458992c59893bec9d299ddef Mon Sep 17 00:00:00 2001 From: Henry Addison Date: Mon, 23 May 2011 11:18:50 +0100 Subject: [PATCH] added a conditions method to all metrics method to help filter all metrics --- lib/fog/aws/models/cloud_watch/metrics.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/models/cloud_watch/metrics.rb b/lib/fog/aws/models/cloud_watch/metrics.rb index 3033c662a..404c7fac1 100644 --- a/lib/fog/aws/models/cloud_watch/metrics.rb +++ b/lib/fog/aws/models/cloud_watch/metrics.rb @@ -8,8 +8,8 @@ module Fog class Metrics < Fog::Collection model Fog::AWS::CloudWatch::Metric - def all - data = connection.list_metrics.body['ListMetricsResult']['Metrics'] + def all(conditions={}) + data = connection.list_metrics(conditions).body['ListMetricsResult']['Metrics'] load(data) # data is an array of attribute hashes end