Class SimpleMetricBatchSender


  • @Deprecated
    public class SimpleMetricBatchSender
    extends java.lang.Object
    Deprecated.
    A builder class for creating a MetricBatchSender that uses okhttp as the underlying http client implementation.

    To be removed in 0.8.0

    Note: This class is deprecated and will be removed in the next major version - you should move to the factories in telemetry-core

    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static com.newrelic.telemetry.metrics.MetricBatchSender build​(java.lang.String apiKey)
      Deprecated.
      Create a new MetricBatchSender with your New Relic Insights Insert API key, and otherwise default settings.
      static com.newrelic.telemetry.metrics.MetricBatchSender build​(java.lang.String apiKey, java.time.Duration callTimeout)
      Deprecated.
      Create a new MetricBatchSender with your New Relic Insights Insert API key and a custom http timeout; Otherwise default settings.
      static com.newrelic.telemetry.metrics.MetricBatchSenderBuilder builder​(java.lang.String apiKey)
      Deprecated.
      Create a new MetricBatchSenderBuilder with your New Relic Insights Insert API key.
      static com.newrelic.telemetry.metrics.MetricBatchSenderBuilder builder​(java.lang.String apiKey, java.time.Duration callTimeout)
      Deprecated.
      Create a new MetricBatchSenderBuilder with your New Relic Insights Insert API key and a custom http timeout.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleMetricBatchSender

        public SimpleMetricBatchSender()
        Deprecated.
    • Method Detail

      • build

        public static com.newrelic.telemetry.metrics.MetricBatchSender build​(java.lang.String apiKey)
        Deprecated.
        Create a new MetricBatchSender with your New Relic Insights Insert API key, and otherwise default settings. (2 second timeout, audit logging off, with the default endpoint URL)
        Parameters:
        apiKey - new relic api key
        Returns:
        a new instance of a metric batch sender
        See Also:
        New Relic API Keys
      • builder

        public static com.newrelic.telemetry.metrics.MetricBatchSenderBuilder builder​(java.lang.String apiKey)
        Deprecated.
        Create a new MetricBatchSenderBuilder with your New Relic Insights Insert API key.
        Parameters:
        apiKey - new relic api key
        Returns:
        a new instance of a metric batch sender builder
        See Also:
        New Relic API Keys
      • build

        public static com.newrelic.telemetry.metrics.MetricBatchSender build​(java.lang.String apiKey,
                                                                             java.time.Duration callTimeout)
        Deprecated.
        Create a new MetricBatchSender with your New Relic Insights Insert API key and a custom http timeout; Otherwise default settings. (audit logging off and with the default endpoint URL)
        Parameters:
        apiKey - new relic api key
        callTimeout - http call timeout
        Returns:
        a new instance of a metric batch sender
        See Also:
        New Relic API Keys
      • builder

        public static com.newrelic.telemetry.metrics.MetricBatchSenderBuilder builder​(java.lang.String apiKey,
                                                                                      java.time.Duration callTimeout)
        Deprecated.
        Create a new MetricBatchSenderBuilder with your New Relic Insights Insert API key and a custom http timeout.
        Parameters:
        apiKey - new relic api key
        callTimeout - http call timeout
        Returns:
        a new instance of a metric batch sender builder
        See Also:
        New Relic API Keys