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 DTServerConnection
createDTServerConnection(String dynatraceConfiguration)
static DTServerConnection
createDTServerConnection(String dynatraceConfiguration, boolean validateConnection)
static String
escapeString(String str)
Escape the given string to be used as URL query value.static ListBoxModel
fillAgentItems(String dynatraceProfile)
static ListBoxModel
fillHostItems(String dynatraceProfile, String agent)
static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials
getCredentials(String credsId)
static List<DynatraceServerConfiguration>
getDTConfigurations()
static String
getIdFromLocationHeader(ApiResponse<Void> response)
static DynatraceServerConfiguration
getServerConfiguration(String dynatraceServer)
static ListBoxModel
listToListBoxModel(List<?> list)
static String
unescapeString(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:
AbortException
RESTErrorException
-
createDTServerConnection
public static DTServerConnection createDTServerConnection(String dynatraceConfiguration, boolean validateConnection) throws AbortException, RESTErrorException
- Throws:
AbortException
RESTErrorException
-
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
-
-