Class DTServerConnection
- java.lang.Object
-
- de.tsystems.mms.apm.performancesignature.dynatrace.rest.DTServerConnection
-
public class DTServerConnection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_URL_ENV_PROPERTY
static String
BUILD_VAR_KEY_CATEGORY
static String
BUILD_VAR_KEY_MARKER
static String
BUILD_VAR_KEY_PLATFORM
static String
BUILD_VAR_KEY_VERSION_MAJOR
static String
BUILD_VAR_KEY_VERSION_MILESTONE
static String
BUILD_VAR_KEY_VERSION_MINOR
static String
BUILD_VAR_KEY_VERSION_REVISION
-
Constructor Summary
Constructors Constructor Description DTServerConnection(DynatraceServerConfiguration config, CredProfilePair pair)
DTServerConnection(String serverUrl, CredProfilePair pair, boolean verifyCertificate, int readTimeout, boolean useProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
activateConfiguration(String configuration)
String
createDeploymentEvent(DeploymentEvent event)
boolean
deleteSession(String sessionId)
boolean
downloadSession(String sessionId, FilePath outputFile, boolean removeConfidentialStrings)
de.tsystems.mms.apm.performancesignature.dynatrace.model.TestRun
finishTestRun(String testRunID)
List<Agent>
getAgents()
List<Agent>
getAllAgents()
ApiClient
getApiClient()
DynatraceServerConfiguration
getConfiguration()
CredProfilePair
getCredProfilePair()
de.tsystems.mms.apm.performancesignature.dynatrace.model.DashboardReport
getDashboardReportFromXML(String dashBoardName, String sessionId, String testCaseName)
List<Dashboard>
getDashboards()
List<de.tsystems.mms.apm.performancesignature.dynatrace.model.Alert>
getIncidents(Date from, Date to)
boolean
getPDFReport(String sessionName, String comparedSessionName, String dashboard, FilePath outputFile)
List<SystemProfileConfiguration>
getProfileConfigurations()
boolean
getRecordingStatus()
LicenseInformation
getServerLicense()
String
getServerVersion()
Sessions
getSessions()
SystemProfiles
getSystemProfiles()
de.tsystems.mms.apm.performancesignature.dynatrace.model.TestRun
getTestRun(String testRunId)
boolean
hotSensorPlacement(int agentId)
String
memoryDump(String agentName, String hostName, int processId, String dumpType, boolean sessionLocked, boolean captureStrings, boolean capturePrimitives, boolean autoPostProcess, boolean doGC)
boolean
memoryDumpStatus(String memoryDump)
String
registerTestRun(TestRunDefinition body)
String
startRecording(String sessionName, String description, String recordingOption, boolean sessionLocked, boolean appendTimestamp)
String
stopRecording()
String
storeSession(String sessionName, Date timeframeStart, Date timeframeEnd, String recordingOption, boolean sessionLocked, boolean appendTimestamp)
String
threadDump(String agentName, String hostName, int processId, boolean sessionLocked)
boolean
threadDumpStatus(String threadDump)
boolean
updateDeploymentEvent(String eventId, EventUpdate body)
-
-
-
Field Detail
-
BUILD_URL_ENV_PROPERTY
public static final String BUILD_URL_ENV_PROPERTY
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_VERSION_MAJOR
public static final String BUILD_VAR_KEY_VERSION_MAJOR
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_VERSION_MINOR
public static final String BUILD_VAR_KEY_VERSION_MINOR
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_VERSION_REVISION
public static final String BUILD_VAR_KEY_VERSION_REVISION
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_VERSION_MILESTONE
public static final String BUILD_VAR_KEY_VERSION_MILESTONE
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_CATEGORY
public static final String BUILD_VAR_KEY_CATEGORY
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_MARKER
public static final String BUILD_VAR_KEY_MARKER
- See Also:
- Constant Field Values
-
BUILD_VAR_KEY_PLATFORM
public static final String BUILD_VAR_KEY_PLATFORM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DTServerConnection
public DTServerConnection(DynatraceServerConfiguration config, CredProfilePair pair)
-
DTServerConnection
public DTServerConnection(String serverUrl, CredProfilePair pair, boolean verifyCertificate, int readTimeout, boolean useProxy)
-
-
Method Detail
-
getConfiguration
public DynatraceServerConfiguration getConfiguration()
-
getCredProfilePair
public CredProfilePair getCredProfilePair()
-
getApiClient
public ApiClient getApiClient()
-
getDashboardReportFromXML
public de.tsystems.mms.apm.performancesignature.dynatrace.model.DashboardReport getDashboardReportFromXML(String dashBoardName, String sessionId, String testCaseName)
-
getServerVersion
public String getServerVersion()
-
storeSession
public String storeSession(String sessionName, Date timeframeStart, Date timeframeEnd, String recordingOption, boolean sessionLocked, boolean appendTimestamp)
-
startRecording
public String startRecording(String sessionName, String description, String recordingOption, boolean sessionLocked, boolean appendTimestamp)
-
stopRecording
public String stopRecording()
-
getRecordingStatus
public boolean getRecordingStatus()
-
getSessions
public Sessions getSessions()
-
getSystemProfiles
public SystemProfiles getSystemProfiles()
-
getProfileConfigurations
public List<SystemProfileConfiguration> getProfileConfigurations()
-
activateConfiguration
public boolean activateConfiguration(String configuration)
-
getServerLicense
public LicenseInformation getServerLicense()
-
hotSensorPlacement
public boolean hotSensorPlacement(int agentId)
-
getPDFReport
public boolean getPDFReport(String sessionName, String comparedSessionName, String dashboard, FilePath outputFile)
-
downloadSession
public boolean downloadSession(String sessionId, FilePath outputFile, boolean removeConfidentialStrings)
-
deleteSession
public boolean deleteSession(String sessionId)
-
threadDump
public String threadDump(String agentName, String hostName, int processId, boolean sessionLocked)
-
threadDumpStatus
public boolean threadDumpStatus(String threadDump)
-
memoryDump
public String memoryDump(String agentName, String hostName, int processId, String dumpType, boolean sessionLocked, boolean captureStrings, boolean capturePrimitives, boolean autoPostProcess, boolean doGC)
-
memoryDumpStatus
public boolean memoryDumpStatus(String memoryDump)
-
registerTestRun
public String registerTestRun(TestRunDefinition body)
-
finishTestRun
public de.tsystems.mms.apm.performancesignature.dynatrace.model.TestRun finishTestRun(String testRunID)
-
getTestRun
public de.tsystems.mms.apm.performancesignature.dynatrace.model.TestRun getTestRun(String testRunId)
-
getIncidents
public List<de.tsystems.mms.apm.performancesignature.dynatrace.model.Alert> getIncidents(Date from, Date to)
-
updateDeploymentEvent
public boolean updateDeploymentEvent(String eventId, EventUpdate body)
-
createDeploymentEvent
public String createDeploymentEvent(DeploymentEvent event)
-
-