fixed filter
This commit is contained in:
parent
fd641c937f
commit
c567df6a9e
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue