com.newrelic.telemetry.events.EventBatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telemetry-core Show documentation
Show all versions of telemetry-core Show documentation
Used to send telemetry data to New Relic
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();
}
}