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 multiple
UriReport
s for different URLs that was tested.
This object belongs under PerformanceReportMap
.
- See Also:
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionPerformanceReport
(String defaultPercentiles) PerformanceReport
(String percentiles, String filterRegex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSample
(HttpSample pHttpSample) void
addSample
(TaurusFinalStats sample, boolean isSummaryReport) static String
asStaplerURI
(String uri) void
void
int
compareTo
(PerformanceReport jmReport) int
boolean
double
long
long
long
long
long
long
double
int
Run<?,
?> getBuild()
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 durationsgetDynamic
(String token) double
long
getMax()
long
long
long
getMin()
int
long
long
long
long
double
int
hashCode()
boolean
ifSummarizerParserUsed
(String filename) Check if the filename of the file being parsed is being parsed by a summarized parser (JMeterSummarizer).int
void
setBaselineBuild
(int baselineBuild) void
setBuildAction
(PerformanceBuildAction buildAction) void
setFilterRegex
(String filterRegex) void
setLastBuildReport
(PerformanceReport lastBuildReport) void
setReportFileName
(String reportFileName) void
setSummarizerAvg
(long summarizerAvg) void
setSummarizerErrors
(String summarizerErrorPercent) void
setSummarizerMax
(long summarizerMax) void
setSummarizerMin
(long summarizerMin) void
setSummarizerSize
(long summarizerSize) 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
-
Field Details
-
INCLUDE_ALL
-
percentiles
-
baselineBuild
protected int baselineBuild
-
-
Constructor Details
-
PerformanceReport
public PerformanceReport() -
PerformanceReport
-
PerformanceReport
-
-
Method Details
-
readResolve
-
asStaplerURI
-
addSample
-
addSample
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PerformanceReport>
-
equals
-
hashCode
public int hashCode() -
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
- Specified by:
getHttpCode
in classAbstractReport
-
getBuild
-
getDisplayName
-
getDynamic
- 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
-
getUriListOrdered
-
getUriReportMap
-
setBuildAction
-
setReportFileName
-
samplesCount
public int samplesCount()- Specified by:
samplesCount
in classAbstractReport
-
setLastBuildReport
-
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
- Specified by:
getLastBuildHttpCodeIfChanged
in classAbstractReport
-
getSamplesCountDiff
public int getSamplesCountDiff()- Specified by:
getSamplesCountDiff
in classAbstractReport
-
ifSummarizerParserUsed
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
-
getSummarizerErrors
-
getThroughput
-
getBaselineBuild
public int getBaselineBuild() -
setBaselineBuild
public void setBaselineBuild(int baselineBuild) -
getFilterRegex
- Returns:
- the filterRegex
-
setFilterRegex
- Parameters:
filterRegex
- the filterRegex to set
-