public List<Event> applyThresholds(CollectionResource resource, Map<String, CollectionAttribute> attributesMap, Date collectionTimestamp) {
if (!isCollectionEnabled(resource)) {
LOG.debug("applyThresholds: Ignoring resource {} because data collection is disabled for this resource.", resource);
return new LinkedList<>();
}
CollectionResourceWrapper resourceWrapper = new CollectionResourceWrapper(
collectionTimestamp, m_nodeId, m_hostAddress, m_serviceName,
m_repository, resource, attributesMap, m_resourceStorageDao);
resourceWrapper.setCounterReset(counterReset);
return applyThresholds(resourceWrapper, attributesMap);
}