public class AgentConfiguration
extends java.lang.Object
AgentConfiguration represents the application’s configuration of the AppDynamics SDK. It should be constructed using the builder() builder.
Required fields are:
Most users can set up their configuration like this:
Instrumentation.start(AgentConfiguration.builder()
.withAppKey("ABC-DEF-GHI")
.withContext(getApplicationContext())
.build());
}
NOTE: Replace “ABC-DEF-GHI” with your actual application key.
For more specialized use cases, like using an on-premise collector, use the other, more advanced options supported by this class.
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentConfiguration.Builder
A class for setting up instances of AgentConfiguration.
|
| Modifier and Type | Method and Description |
|---|---|
static AgentConfiguration.Builder |
builder()
Generates a builder for configuring the SDK.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic static AgentConfiguration.Builder builder()
Generates a builder for configuring the SDK.