
com.newrelic.telemetry.events.EventBatch Maven / Gradle / Ivy
package com.newrelic.telemetry.events;
import com.newrelic.telemetry.Attributes;
import com.newrelic.telemetry.TelemetryBatch;
import java.util.Collection;
/** Represents a set of {@link Event} instances, to be sent up to the New Relic Metrics API. */
public class EventBatch extends TelemetryBatch {
public EventBatch(Collection events, Attributes commonAttributes) {
super(events, commonAttributes);
}
public EventBatch(Collection events) {
super(events, new Attributes());
}
@Override
public TelemetryBatch createSubBatch(Collection telemetry) {
return new EventBatch(telemetry, getCommonAttributes());
}
@Override
public String toString() {
return "EventBatch{} " + super.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy