Package com.newrelic.telemetry
Class OkHttp
- java.lang.Object
-
- com.newrelic.telemetry.OkHttp
-
public class OkHttp extends java.lang.Object
Simple way to create a TelemetryClient that is backed by an OkHttp based HTTP posters.
-
-
Constructor Summary
Constructors Constructor Description OkHttp()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.newrelic.telemetry.TelemetryClient
newTelemetryClient(com.newrelic.telemetry.BaseConfig baseConfig)
Create a new TelemetryClient based on the configuration in the BaseConfig instance passed in.static com.newrelic.telemetry.TelemetryClient
newTelemetryClient(java.lang.String apiKey)
Create a new TelemetryClient with the given apiKey and default configuration
-
-
-
Method Detail
-
newTelemetryClient
public static com.newrelic.telemetry.TelemetryClient newTelemetryClient(java.lang.String apiKey)
Create a new TelemetryClient with the given apiKey and default configuration- Parameters:
apiKey
- - The New Relic insert api key- Returns:
- a new instance of a Telemetry Client
-
newTelemetryClient
public static com.newrelic.telemetry.TelemetryClient newTelemetryClient(com.newrelic.telemetry.BaseConfig baseConfig)
Create a new TelemetryClient based on the configuration in the BaseConfig instance passed in. Everything not covered in the baseConfig will be defaulted.- Parameters:
baseConfig
- - A configuration instance with the basics- Returns:
- a new instance of a Telemetry Client
-
-