267268269270271272273274275276277
for (String part : components) { sb.append(separator); sb.append(part); } event.service(sb.toString()); event.time(timestamp); event.attribute("metric-type", metricType); return event; } };