Package com.newrelic.telemetry
Class SimpleMetricBatchSender
- java.lang.Object
-
- com.newrelic.telemetry.SimpleMetricBatchSender
-
@Deprecated public class SimpleMetricBatchSender extends java.lang.ObjectDeprecated.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
-
-
Constructor Summary
Constructors Constructor Description SimpleMetricBatchSender()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.newrelic.telemetry.metrics.MetricBatchSenderbuild(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.MetricBatchSenderbuild(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.MetricBatchSenderBuilderbuilder(java.lang.String apiKey)Deprecated.Create a new MetricBatchSenderBuilder with your New Relic Insights Insert API key.static com.newrelic.telemetry.metrics.MetricBatchSenderBuilderbuilder(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.
-
-
-
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 keycallTimeout- 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 keycallTimeout- http call timeout- Returns:
- a new instance of a metric batch sender builder
- See Also:
- New Relic API Keys
-
-