Class UriReport
- java.lang.Object
-
- hudson.plugins.performance.reports.AbstractReport
-
- hudson.plugins.performance.reports.UriReport
-
- All Implemented Interfaces:
ModelObject
,Serializable
,Comparable<UriReport>
public class UriReport extends AbstractReport implements Serializable, ModelObject, Comparable<UriReport>
A report about a particular tested URI.This object belongs under
PerformanceReport
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UriReport.Sample
-
Field Summary
Fields Modifier and Type Field Description static String
END_PERFORMANCE_PARAMETER
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 UriReport(PerformanceReport performanceReport, String staplerUri, String uri)
-
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
-
-
-
-
Field Detail
-
END_PERFORMANCE_PARAMETER
public static final String END_PERFORMANCE_PARAMETER
- See Also:
- Constant Field Values
-
percentiles
protected String percentiles
-
-
Constructor Detail
-
UriReport
public UriReport(PerformanceReport performanceReport, String staplerUri, String uri)
-
-
Method Detail
-
readResolve
public Object readResolve()
-
addHttpSample
public void addHttpSample(HttpSample sample)
-
setFromTaurusFinalStats
public void setFromTaurusFinalStats(TaurusFinalStats report)
-
compareTo
public int compareTo(UriReport uriReport)
- Specified by:
compareTo
in interfaceComparable<UriReport>
-
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
-
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
-
getHttpCode
public String getHttpCode()
- Specified by:
getHttpCode
in classAbstractReport
-
getMedian
public long getMedian()
- Specified by:
getMedian
in classAbstractReport
-
getBuild
public Run<?,?> getBuild()
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
getHttpSampleList
public List<UriReport.Sample> getHttpSampleList()
-
getPerformanceReport
public PerformanceReport getPerformanceReport()
-
getMax
public long getMax()
- Specified by:
getMax
in classAbstractReport
-
getMin
public long getMin()
- Specified by:
getMin
in classAbstractReport
-
getStaplerUri
public String getStaplerUri()
-
getUri
public String getUri()
-
getShortUri
public String getShortUri()
-
isFailed
public boolean isFailed()
-
samplesCount
public int samplesCount()
- Specified by:
samplesCount
in classAbstractReport
-
encodeUriReport
public String encodeUriReport() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
addLastBuildUriReport
public void addLastBuildUriReport(UriReport lastBuildUriReport)
-
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
-
getSummarizerErrors
public float getSummarizerErrors()
-
doSummarizerTrendGraph
public void doSummarizerTrendGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
- Throws:
IOException
-
doErrorGraph
public void doErrorGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
- Throws:
IOException
-
doPercentileGraph
public void doPercentileGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
- Throws:
IOException
-
doThroughputGraph
public void doThroughputGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
- Throws:
IOException
-
getStart
public Date getStart()
-
getEnd
public Date getEnd()
-
isIncludeResponseTime
protected boolean isIncludeResponseTime(UriReport.Sample sample)
-
setThroughput
@Deprecated public void setThroughput(Long throughput)
Deprecated.
-
getThroughput
@Deprecated public Long getThroughput()
Deprecated.
-
hasSamples
public boolean hasSamples()
-
getAverageSizeInKb
public double getAverageSizeInKb()
-
getTotalTrafficInKb
public double getTotalTrafficInKb()
-
getAverageSizeInKbDiff
public double getAverageSizeInKbDiff()
-
getTotalTrafficInKbDiff
public double getTotalTrafficInKbDiff()
-
-