Class StartOptions

  • All Implemented Interfaces:
    com.dynatrace.tools.android.api.StartOptions, Serializable

    public class StartOptions
    extends Object
    implements Serializable, com.dynatrace.tools.android.api.StartOptions
    DSL object for configuring the auto start injection feature.

    You can either connect the agent to a Dynatrace cluster or to an AppMon environment.

    Dynatrace example:

     dynatrace {
         configurations {
             sampleConfig {
                 autoStart {
                     applicationId '<YourApplicationID>'
                     beaconUrl '<ProvidedBeaconURL>'
                 }
             }
        }
     }
     
    AppMon example:
     dynatrace {
         configurations {
             sampleConfig {
                 autoStart {
                     applicationId 'MyExampleAppID'
                     agentPath 'https://dev.example.com:443'
                 }
             }
        }
     }
     
    See Also:
    Serialized Form
    • Constructor Detail

      • StartOptions

        public StartOptions()
    • Method Detail

      • enabled

        public void enabled​(boolean enabled)
        Specifies if the auto start injection feature is enabled

        The default value is true.

        Parameters:
        enabled - true, if the auto start injection feature is enabled
      • applicationId

        public void applicationId​(String applicationId)
        Specifies the application id value from your Dynatrace mobile application configuration page
        Parameters:
        applicationId - the application id value
      • beaconUrl

        public void beaconUrl​(String beaconUrl)
        Specifies the beaconUrl value from your Dynatrace mobile application configuration page
        Parameters:
        beaconUrl - the beaconUrl value
      • agentPath

        public void agentPath​(String agentPath)
        Specifies the agentPath value from your AppMon web server agent
        Parameters:
        agentPath - the agentPath value from your AppMon web server agent
      • isEnabled

        public boolean isEnabled()
        Specifies if the auto start injection feature is enabled

        The default value is true.

        Specified by:
        isEnabled in interface com.dynatrace.tools.android.api.StartOptions
        Returns:
        true, if the auto start injection feature is enabled
      • getApplicationId

        public String getApplicationId()
        Specifies the application id value from your Dynatrace mobile application configuration page
        Specified by:
        getApplicationId in interface com.dynatrace.tools.android.api.StartOptions
        Returns:
        the application id value from your Dynatrace mobile application configuration page
      • getBeaconUrl

        public String getBeaconUrl()
        Specifies the beaconUrl value from your Dynatrace mobile application configuration page
        Specified by:
        getBeaconUrl in interface com.dynatrace.tools.android.api.StartOptions
        Returns:
        the beaconUrl value from your Dynatrace mobile application configuration page
      • getAgentPath

        public String getAgentPath()
        Specifies the agentPath value from your AppMon web server agent
        Specified by:
        getAgentPath in interface com.dynatrace.tools.android.api.StartOptions
        Returns:
        the agentPath value from your AppMon web server agent