Skip to content

Commit 09e22a3

Browse files
committed
Allow passing through arbitrary aggregations
1 parent a0cb34c commit 09e22a3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

predix/data/timeseries.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,7 @@ def get_datapoints(self, tags, start=None, end=None, order=None,
312312
if not isinstance(aggregations, list):
313313
aggregations = [aggregations]
314314

315-
query['aggregations'] = []
316-
for aggregation in aggregations:
317-
query['aggregations'].append({
318-
'sampling': {'datapoints': 1},
319-
'type': aggregation })
315+
query['aggregations'] = aggregations
320316

321317
params['tags'].append(query)
322318

0 commit comments

Comments
 (0)