match os All app_id app-one period_timestamp gte datetime datetime 201

1
[{'$match': {'os': 'All', 'app_id': u'app-one', 'period_timestamp': {'$gte': datetime.datetime(2014, 11, 11, 0, 0), '$lt': datetime.datetime(2014, 11, 18, 0, 0)}}}, {'$group': {'_id': {'metric': '$metricName'}, 'value': {'$sum': '$metricValue'}}}, {'$project': {'metric': '$_id.metric', '_id': 0, 'value': '$value'}}]