Class PerformanceReport
- java.lang.Object
-
- hudson.plugins.performance.reports.AbstractReport
-
- hudson.plugins.performance.reports.PerformanceReport
-
- All Implemented Interfaces:
Serializable
,Comparable<PerformanceReport>
public class PerformanceReport extends AbstractReport implements Serializable, Comparable<PerformanceReport>
Represents a single performance report, which consists of multipleUriReport
s for different URLs that was tested.This object belongs under
PerformanceReportMap
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
baselineBuild
static String
INCLUDE_ALL
protected String
percentiles
-
Fields inherited from class hudson.plugins.performance.reports.AbstractReport
dataFormat, DEFAULT_PERCENTILES, excludeResponseTime, FIFTY_PERCENT, isCalculatedPercentilesValues, LOGGER, NINETY_FIVE_PERCENT, NINETY_PERCENT, ONE_HUNDRED_PERCENT, percentFormat, percentilesDiffValues, percentilesValues, showTrendGraphs, ZERO_PERCENT
-
-
Constructor Summary
Constructors Constructor Description PerformanceReport()
PerformanceReport(String defaultPercentiles)
PerformanceReport(String percentiles, String filterRegex)
-
Method Summary
-
Methods inherited from class hudson.plugins.performance.reports.AbstractReport
checkPercentileAndSet, errorPercentFormated, get90LineFormated, get95LineFormated, getAverageFormated, getMaxFormated, getMeanFormated, getPercentileLabel, getPercentilesDiffValues, getPercentilesValues, isExcludeResponseTime, isIncludeResponseTime, isShowTrendGraphs, parsePercentiles, setExcludeResponseTime, setShowTrendGraphs
-
-
-
-
Method Detail
-
readResolve
public Object readResolve()
-
addSample
public void addSample(HttpSample pHttpSample)
-
addSample
public void addSample(TaurusFinalStats sample, boolean isSummaryReport)
-
compareTo
public int compareTo(PerformanceReport jmReport)
- Specified by:
compareTo
in interfaceComparable<PerformanceReport>
-
countErrors
public int countErrors()
- Specified by:
countErrors
in classAbstractReport
-
errorPercent
public double errorPercent()
- Specified by:
errorPercent
in classAbstractReport
-
getAverage
public long getAverage()
- Specified by:
getAverage
in classAbstractReport
-
getAverageSizeInKb
public double getAverageSizeInKb()
-
getDurationAt
public long getDurationAt(double percentage)
0 percent will give the first value from ordered list of durations 100 percent will give the last value from ordered list of durations- Parameters:
percentage
- must be a value between 0 and 100 (inclusive)- Returns:
- value at the percentage specified.
-
calculatePercentiles
public void calculatePercentiles()
- Specified by:
calculatePercentiles
in classAbstractReport
-
calculateDiffPercentiles
public void calculateDiffPercentiles()
- Specified by:
calculateDiffPercentiles
in classAbstractReport
-
get90Line
public long get90Line()
- Specified by:
get90Line
in classAbstractReport
-
get95Line
public long get95Line()
- Specified by:
get95Line
in classAbstractReport
-
getMedian
public long getMedian()
- Specified by:
getMedian
in classAbstractReport
-
getHttpCode
public String getHttpCode()
- Specified by:
getHttpCode
in classAbstractReport
-
getBuild
public Run<?,?> getBuild()
-
getDisplayName
public String getDisplayName()
-
getDynamic
public UriReport getDynamic(String token) throws IOException
- Throws:
IOException
-
getMax
public long getMax()
- Specified by:
getMax
in classAbstractReport
-
getTotalTrafficInKb
public double getTotalTrafficInKb()
-
getMin
public long getMin()
- Specified by:
getMin
in classAbstractReport
-
getReportFileName
public String getReportFileName()
-
setBuildAction
public void setBuildAction(PerformanceBuildAction buildAction)
-
setReportFileName
public void setReportFileName(String reportFileName)
-
samplesCount
public int samplesCount()
- Specified by:
samplesCount
in classAbstractReport
-
setLastBuildReport
public void setLastBuildReport(PerformanceReport lastBuildReport)
-
getAverageDiff
public long getAverageDiff()
- Specified by:
getAverageDiff
in classAbstractReport
-
getMedianDiff
public long getMedianDiff()
- Specified by:
getMedianDiff
in classAbstractReport
-
get90LineDiff
public long get90LineDiff()
- Specified by:
get90LineDiff
in classAbstractReport
-
get95LineDiff
public long get95LineDiff()
- Specified by:
get95LineDiff
in classAbstractReport
-
getErrorPercentDiff
public double getErrorPercentDiff()
- Specified by:
getErrorPercentDiff
in classAbstractReport
-
getLastBuildHttpCodeIfChanged
public String getLastBuildHttpCodeIfChanged()
- Specified by:
getLastBuildHttpCodeIfChanged
in classAbstractReport
-
getSamplesCountDiff
public int getSamplesCountDiff()
- Specified by:
getSamplesCountDiff
in classAbstractReport
-
ifSummarizerParserUsed
public boolean ifSummarizerParserUsed(String filename)
Check if the filename of the file being parsed is being parsed by a summarized parser (JMeterSummarizer).- Parameters:
filename
- name of the file being parsed- Returns:
- boolean indicating usage of summarized parser
-
setSummarizerSize
public void setSummarizerSize(long summarizerSize)
-
getSummarizerSize
public long getSummarizerSize()
-
setSummarizerMin
public void setSummarizerMin(long summarizerMin)
-
getSummarizerMin
public long getSummarizerMin()
-
setSummarizerMax
public void setSummarizerMax(long summarizerMax)
-
getSummarizerMax
public long getSummarizerMax()
-
setSummarizerAvg
public void setSummarizerAvg(long summarizerAvg)
-
getSummarizerAvg
public long getSummarizerAvg()
-
setSummarizerErrors
public void setSummarizerErrors(String summarizerErrorPercent)
-
getSummarizerErrors
public String getSummarizerErrors()
-
getThroughput
public Long getThroughput()
-
getBaselineBuild
public int getBaselineBuild()
-
setBaselineBuild
public void setBaselineBuild(int baselineBuild)
-
getFilterRegex
public String getFilterRegex()
- Returns:
- the filterRegex
-
setFilterRegex
public void setFilterRegex(String filterRegex)
- Parameters:
filterRegex
- the filterRegex to set
-
-