All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.newrelic.telemetry.events.EventBatch Maven / Gradle / Ivy

There is a newer version: 0.16.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy