Class StartOptions

java.lang.Object
com.dynatrace.tools.android.dsl.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates new StartOptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    agentPath(String agentPath)
    Specifies the agentPath value from your AppMon web server agent.
    void
    applicationId(String applicationId)
    Specifies the application id value from your Dynatrace mobile application configuration page.
    void
    beaconUrl(String beaconUrl)
    Specifies the beaconUrl value from your Dynatrace mobile application configuration page.
    void
    enabled(boolean enabled)
    Specifies if the auto start injection feature is enabled.
    boolean
    equals(Object other)
    Specifies the agentPath value from your AppMon web server agent.
    Specifies the application id value from your Dynatrace mobile application configuration page.
    Specifies the beaconUrl value from your Dynatrace mobile application configuration page.
    int
    boolean
    Specifies if the auto start injection feature is enabled.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StartOptions

      public StartOptions()
      Creates new StartOptions.
  • Method Details

    • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object