mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
added a conditions method to all metrics method to help filter all metrics
This commit is contained in:
parent
96ec6066e4
commit
f9d26321d2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue