Class PerfSigUtils
- java.lang.Object
-
- de.tsystems.mms.apm.performancesignature.dynatrace.util.PerfSigUtils
-
public final class PerfSigUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DTServerConnectioncreateDTServerConnection(String dynatraceConfiguration)static DTServerConnectioncreateDTServerConnection(String dynatraceConfiguration, boolean validateConnection)static StringescapeString(String str)Escape the given string to be used as URL query value.static ListBoxModelfillAgentItems(String dynatraceProfile)static ListBoxModelfillHostItems(String dynatraceProfile, String agent)static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentialsgetCredentials(String credsId)static List<DynatraceServerConfiguration>getDTConfigurations()static StringgetIdFromLocationHeader(ApiResponse<Void> response)static DynatraceServerConfigurationgetServerConfiguration(String dynatraceServer)static ListBoxModellistToListBoxModel(List<?> list)static StringunescapeString(String str)Unescape the given string coming from a query parameter.
-
-
-
Method Detail
-
listToListBoxModel
public static ListBoxModel listToListBoxModel(List<?> list)
-
getDTConfigurations
public static List<DynatraceServerConfiguration> getDTConfigurations()
-
getServerConfiguration
public static DynatraceServerConfiguration getServerConfiguration(String dynatraceServer)
-
getCredentials
@CheckForNull public static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getCredentials(String credsId)
-
fillAgentItems
public static ListBoxModel fillAgentItems(String dynatraceProfile)
-
fillHostItems
public static ListBoxModel fillHostItems(String dynatraceProfile, String agent)
-
createDTServerConnection
public static DTServerConnection createDTServerConnection(String dynatraceConfiguration) throws AbortException, RESTErrorException
- Throws:
AbortExceptionRESTErrorException
-
createDTServerConnection
public static DTServerConnection createDTServerConnection(String dynatraceConfiguration, boolean validateConnection) throws AbortException, RESTErrorException
- Throws:
AbortExceptionRESTErrorException
-
getIdFromLocationHeader
public static String getIdFromLocationHeader(ApiResponse<Void> response)
-
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
-
-