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

com.newrelic.telemetry.logs.LogBatch Maven / Gradle / Ivy

/*
 * Copyright 2020 New Relic Corporation. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package com.newrelic.telemetry.logs;

import com.newrelic.telemetry.Attributes;
import com.newrelic.telemetry.TelemetryBatch;
import java.util.Collection;

/** Represents a set of {@link Log} instances, to be sent up to the New Relic Logging API. */
public class LogBatch extends TelemetryBatch {
  public LogBatch(Collection telemetry, Attributes commonAttributes) {
    super(telemetry, commonAttributes);
  }

  @Override
  public TelemetryBatch createSubBatch(Collection telemetry) {
    return new LogBatch(telemetry, getCommonAttributes());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy