what is usage of additional_query in utils/ceilometer

asked 2015-08-22 08:41:27 -0600

neelabhsingh gravatar image

In class ProjectAggregatesQuery they are using additional query and {'field': 'timestamp', 'op': 'ge', 'value': date_from}. What is timestamp, op.

Please see the following link.


class ProjectAggregatesQuery(object):
   def __init__(self, date_from, date_to,
                 period=None, additional_query=[]):
        if not period:
            #print('if not period, period=', period) # It is not running 
            period = calc_period(date_from, date_to)
        if date_from:
            additional_query.append({'field': 'timestamp',
                                     'op': 'ge',
                                     'value': date_from})
        if date_to:
            additional_query.append({'field': 'timestamp',
                                     'op': 'le',
                                     'value': date_to})
edit retag flag offensive close merge delete