for (Entry<AlgorithmType, GroupType> slaMetric : METRICS.entries()) {
for (Entry<String, Collection<IScheduledTask>> namedGroup
: slaMetric.getValue().getSlaGroup().createNamedGroups(tasks).asMap().entrySet()) {
AlgorithmType algoType = slaMetric.getKey();
String metricName = namedGroup.getKey() + algoType.getAlgorithmName();
metricCache.getUnchecked(metricName)
.set(metricName, algoType.getAlgorithm().calculate(
namedGroup.getValue(),
Range.closedOpen(intervalStartMs, nowMs)));
}
}
}