fixed filter

This commit is contained in:
Luca Frosini 2021-06-04 08:45:28 +02:00
parent fd641c937f
commit c567df6a9e
1 changed files with 1 additions and 1 deletions

View File

@ -58,6 +58,7 @@ public class MethodInvocationHarvester extends BasicHarvester {
SortedMap<Filter,SortedMap<Calendar,Info>> result = null; SortedMap<Filter,SortedMap<Calendar,Info>> result = null;
List<Filter> filters = new ArrayList<>(); List<Filter> filters = new ArrayList<>();
filters.add(new Filter(ServiceUsageRecord.SERVICE_NAME, DATAMINER_SERVICE_NAME));
Date newMethodInvocationHarvesterStartDate = DateUtils.getStartCalendar(2017, Calendar.DECEMBER, 31).getTime(); Date newMethodInvocationHarvesterStartDate = DateUtils.getStartCalendar(2017, Calendar.DECEMBER, 31).getTime();
@ -67,7 +68,6 @@ public class MethodInvocationHarvester extends BasicHarvester {
AggregatedJobUsageRecord.class, temporalConstraint, filters, contexts, true); AggregatedJobUsageRecord.class, temporalConstraint, filters, contexts, true);
} else { } else {
// Before 31/12/2017 accounting Method Invocation using ServiceUsageRecord // Before 31/12/2017 accounting Method Invocation using ServiceUsageRecord
filters.add(new Filter(ServiceUsageRecord.SERVICE_NAME, DATAMINER_SERVICE_NAME));
result = accountingPersistenceQuery.getContextTimeSeries( result = accountingPersistenceQuery.getContextTimeSeries(
AggregatedServiceUsageRecord.class, temporalConstraint, filters, contexts, true); AggregatedServiceUsageRecord.class, temporalConstraint, filters, contexts, true);
} }