Package com.newrelic.telemetry.events
Class EventBatch
- java.lang.Object
-
- com.newrelic.telemetry.TelemetryBatch<Event>
-
- com.newrelic.telemetry.events.EventBatch
-
public class EventBatch extends TelemetryBatch<Event>
Represents a set ofEvent
instances, to be sent up to the New Relic Metrics API.
-
-
Constructor Summary
Constructors Constructor Description EventBatch(java.util.Collection<Event> events)
EventBatch(java.util.Collection<Event> events, Attributes commonAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TelemetryBatch<Event>
createSubBatch(java.util.Collection<Event> telemetry)
java.lang.String
toString()
-
Methods inherited from class com.newrelic.telemetry.TelemetryBatch
equals, getCommonAttributes, getTelemetry, hasCommonAttributes, hashCode, isEmpty, size, split
-
-
-
-
Constructor Detail
-
EventBatch
public EventBatch(java.util.Collection<Event> events, Attributes commonAttributes)
-
EventBatch
public EventBatch(java.util.Collection<Event> events)
-
-
Method Detail
-
createSubBatch
public TelemetryBatch<Event> createSubBatch(java.util.Collection<Event> telemetry)
- Specified by:
createSubBatch
in classTelemetryBatch<Event>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTelemetryBatch<Event>
-
-