Class DynatraceConfigurationBuilder

java.lang.Object
com.dynatrace.android.agent.conf.ConfigurationBuilder
com.dynatrace.android.agent.conf.DynatraceConfigurationBuilder

public class DynatraceConfigurationBuilder extends ConfigurationBuilder
This class properly generates and initializes the agent Configuration for Dynatrace SaaS/Managed usage.

Example:

 new DynatraceConfigurationBuilder("myApplicationUUID", "https://example.bf.dynatrace.com/mbeacon")
     .withHybridMonitoring(true)
     .withMonitoredDomains("https://www.foo.com", "https://www.bla.com")
     .buildConfiguration();
 
  • Constructor Details

    • DynatraceConfigurationBuilder

      public DynatraceConfigurationBuilder(String applicationId, String beaconUrl)
      Creates a new ConfigurationBuilder by passing the mandatory Dynatrace configuration parameters.

      The parameter values can be found in the Instrumentation wizard of your mobile application in Dynatrace

      Parameters:
      applicationId - the application id
      beaconUrl - the beacon url as provided by the wizard