public class AppDynamicsResultsPublisher
extends hudson.tasks.Recorder
Configuration is set from the Jenkins Build Configuration menu. When a build is triggered, the
perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener)
method is called. This will then trigger the AppDynamicsDataCollector
and parse any results and produces
AppDynamicsReport
's.
A AppDynamicsBuildAction
is used to store data per-build, so it can be compared later.
Modifier and Type | Class and Description |
---|---|
static class |
AppDynamicsResultsPublisher.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static AppDynamicsResultsPublisher.DescriptorImpl |
DESCRIPTOR |
Constructor and Description |
---|
AppDynamicsResultsPublisher(String appdynamicsRestUri,
String username,
String password,
String applicationName,
String thresholdMetric,
String customMetricPath,
Boolean lowerIsBetter,
Integer minimumMeasureTimeInMinutes,
Integer performanceFailedThreshold,
Integer performanceUnstableThreshold) |
Modifier and Type | Method and Description |
---|---|
String |
getAppdynamicsRestUri() |
String |
getApplicationName() |
String |
getCustomMetricPath() |
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor() |
Boolean |
getLowerIsBetter() |
Integer |
getMinimumMeasureTimeInMinutes() |
hudson.util.Secret |
getPassword() |
Integer |
getPerformanceFailedThreshold() |
Integer |
getPerformanceUnstableThreshold() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getThresholdMetric() |
String |
getUsername() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setAppdynamicsRestUri(String appdynamicsRestUri) |
void |
setApplicationName(String applicationName) |
void |
setCustomMetricPath(String customMetricPath) |
void |
setLowerIsBetter(Boolean lowerIsBetter) |
void |
setMinimumMeasureTimeInMinutes(Integer minimumMeasureTimeInMinutes) |
void |
setPassword(hudson.util.Secret password) |
void |
setPassword(String password) |
void |
setPerformanceFailedThreshold(Integer performanceFailedThreshold) |
void |
setPerformanceUnstableThreshold(Integer performanceUnstableThreshold) |
void |
setThresholdMetric(String thresholdMetric) |
void |
setUsername(String username) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
@Extension public static final AppDynamicsResultsPublisher.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public AppDynamicsResultsPublisher(String appdynamicsRestUri, String username, String password, String applicationName, String thresholdMetric, String customMetricPath, Boolean lowerIsBetter, Integer minimumMeasureTimeInMinutes, Integer performanceFailedThreshold, Integer performanceUnstableThreshold)
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction
in interface hudson.tasks.BuildStep
getProjectAction
in class hudson.tasks.BuildStepCompatibilityLayer
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public String getAppdynamicsRestUri()
public void setAppdynamicsRestUri(String appdynamicsRestUri)
public String getUsername()
public void setUsername(String username)
public hudson.util.Secret getPassword()
public void setPassword(hudson.util.Secret password)
public void setPassword(String password)
public String getApplicationName()
public void setApplicationName(String applicationName)
public String getThresholdMetric()
public void setThresholdMetric(String thresholdMetric)
public String getCustomMetricPath()
public void setCustomMetricPath(String customMetricPath)
public Boolean getLowerIsBetter()
public void setLowerIsBetter(Boolean lowerIsBetter)
public Integer getMinimumMeasureTimeInMinutes()
public void setMinimumMeasureTimeInMinutes(Integer minimumMeasureTimeInMinutes)
public Integer getPerformanceFailedThreshold()
public void setPerformanceFailedThreshold(Integer performanceFailedThreshold)
public Integer getPerformanceUnstableThreshold()
public void setPerformanceUnstableThreshold(Integer performanceUnstableThreshold)
Copyright © 2016–2019. All rights reserved.