com.metamx.metrics.MonitorUtils Maven / Gradle / Ivy
The newest version!
package com.metamx.metrics;
import com.metamx.emitter.service.ServiceMetricEvent;
import java.util.Map;
public class MonitorUtils
{
public static void addDimensionsToBuilder(ServiceMetricEvent.Builder builder, Map dimensions)
{
for (Map.Entry keyValue : dimensions.entrySet()) {
builder.setDimension(keyValue.getKey(), keyValue.getValue());
}
}
}