Package com.dynatrace.tools.android.dsl
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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
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
hashCode()
boolean
Specifies if the auto start injection feature is enabled.toString()
-
Constructor Details
-
StartOptions
public StartOptions()Creates newStartOptions
.
-
-
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
Specifies the application id value from your Dynatrace mobile application configuration page.- Parameters:
applicationId
- the application id value
-
beaconUrl
Specifies the beaconUrl value from your Dynatrace mobile application configuration page.- Parameters:
beaconUrl
- the beaconUrl value
-
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 interfacecom.dynatrace.tools.android.api.StartOptions
- Returns:
- true, if the auto start injection feature is enabled
-
getApplicationId
Specifies the application id value from your Dynatrace mobile application configuration page.- Specified by:
getApplicationId
in interfacecom.dynatrace.tools.android.api.StartOptions
- Returns:
- the application id value from your Dynatrace mobile application configuration page
-
getBeaconUrl
Specifies the beaconUrl value from your Dynatrace mobile application configuration page.- Specified by:
getBeaconUrl
in interfacecom.dynatrace.tools.android.api.StartOptions
- Returns:
- the beaconUrl value from your Dynatrace mobile application configuration page
-
getAgentPath
Specifies the agentPath value from your AppMon web server agent.- Specified by:
getAgentPath
in interfacecom.dynatrace.tools.android.api.StartOptions
- Returns:
- the agentPath value from your AppMon web server agent
-
hashCode
public int hashCode() -
equals
-
toString
-