Class DynatraceUtils
- java.lang.Object
-
- de.tsystems.mms.apm.performancesignature.dynatracesaas.util.DynatraceUtils
-
public final class DynatraceUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynatraceServerConnection
createDynatraceServerConnection(String dynatraceServer, boolean validateConnection)
static String
escapeString(String str)
Escape the given string to be used as URL query value.static String
getApiToken(String apiTokenId)
static List<DynatraceServerConfiguration>
getDynatraceConfigurations()
static DynatraceServerConfiguration
getServerConfiguration(String dynatraceServer)
static TaskListener
getTaskListener(org.jenkinsci.plugins.workflow.steps.StepContext context)
static ListBoxModel
listToListBoxModel(List<?> list)
-
-
-
Method Detail
-
listToListBoxModel
public static ListBoxModel listToListBoxModel(List<?> list)
-
getDynatraceConfigurations
public static List<DynatraceServerConfiguration> getDynatraceConfigurations()
-
getServerConfiguration
public static DynatraceServerConfiguration getServerConfiguration(String dynatraceServer)
-
createDynatraceServerConnection
public static DynatraceServerConnection createDynatraceServerConnection(String dynatraceServer, boolean validateConnection) throws AbortException, RESTErrorException
- Throws:
AbortException
RESTErrorException
-
escapeString
public static String escapeString(String str)
Escape the given string to be used as URL query value.- Parameters:
str
- String to be escaped- Returns:
- Escaped string
-
getTaskListener
public static TaskListener getTaskListener(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-