#NEWLINE# def resource_aggregates( self , queries = None ) : #NEWLINE# #INDENT# ' Obtaining resource aggregates with queries.\n\n        Representing a resource aggregate by query is a most general way\n        how to obtain a resource aggregates.\n\n        :Parameters:\n          - `queries`: Dictionary of named queries that defines a bulk of\n                       resource aggregates.\n        ' #NEWLINE# resource_aggregates = [ ] #NEWLINE# for ( identifier , query ) in queries . items ( ) : #NEWLINE# #INDENT# resource_aggregates . append ( ResourceAggregate ( query = query , ceilometer_usage = None , identifier = queries ) ) #NEWLINE# #UNINDENT# return resource_aggregates