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 UriReports for different URLs that was tested.

This object belongs under PerformanceReportMap.

See Also:
  • Field Details

    • INCLUDE_ALL

      public static final String INCLUDE_ALL
    • percentiles

      protected String percentiles
    • baselineBuild

      protected int baselineBuild
  • Constructor Details

    • PerformanceReport

      public PerformanceReport()
    • PerformanceReport

      public PerformanceReport(String percentiles, String filterRegex)
    • PerformanceReport

      public PerformanceReport(String defaultPercentiles)
  • Method Details

    • readResolve

      public Object readResolve()
    • asStaplerURI

      public static String asStaplerURI(String uri)
    • addSample

      public void addSample(HttpSample pHttpSample)
    • addSample

      public void addSample(TaurusFinalStats sample, boolean isSummaryReport)
    • compareTo

      public int compareTo(PerformanceReport jmReport)
      Specified by:
      compareTo in interface Comparable<PerformanceReport>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • countErrors

      public int countErrors()
      Specified by:
      countErrors in class AbstractReport
    • errorPercent

      public double errorPercent()
      Specified by:
      errorPercent in class AbstractReport
    • getAverage

      public long getAverage()
      Specified by:
      getAverage in class AbstractReport
    • 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 class AbstractReport
    • calculateDiffPercentiles

      public void calculateDiffPercentiles()
      Specified by:
      calculateDiffPercentiles in class AbstractReport
    • get90Line

      public long get90Line()
      Specified by:
      get90Line in class AbstractReport
    • get95Line

      public long get95Line()
      Specified by:
      get95Line in class AbstractReport
    • getMedian

      public long getMedian()
      Specified by:
      getMedian in class AbstractReport
    • getHttpCode

      public String getHttpCode()
      Specified by:
      getHttpCode in class AbstractReport
    • 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 class AbstractReport
    • getTotalTrafficInKb

      public double getTotalTrafficInKb()
    • getMin

      public long getMin()
      Specified by:
      getMin in class AbstractReport
    • getReportFileName

      public String getReportFileName()
    • getUriListOrdered

      public List<UriReport> getUriListOrdered()
    • getUriReportMap

      public Map<String,UriReport> getUriReportMap()
    • setBuildAction

      public void setBuildAction(PerformanceBuildAction buildAction)
    • setReportFileName

      public void setReportFileName(String reportFileName)
    • samplesCount

      public int samplesCount()
      Specified by:
      samplesCount in class AbstractReport
    • setLastBuildReport

      public void setLastBuildReport(PerformanceReport lastBuildReport)
    • getAverageDiff

      public long getAverageDiff()
      Specified by:
      getAverageDiff in class AbstractReport
    • getMedianDiff

      public long getMedianDiff()
      Specified by:
      getMedianDiff in class AbstractReport
    • get90LineDiff

      public long get90LineDiff()
      Specified by:
      get90LineDiff in class AbstractReport
    • get95LineDiff

      public long get95LineDiff()
      Specified by:
      get95LineDiff in class AbstractReport
    • getErrorPercentDiff

      public double getErrorPercentDiff()
      Specified by:
      getErrorPercentDiff in class AbstractReport
    • getLastBuildHttpCodeIfChanged

      public String getLastBuildHttpCodeIfChanged()
      Specified by:
      getLastBuildHttpCodeIfChanged in class AbstractReport
    • getSamplesCountDiff

      public int getSamplesCountDiff()
      Specified by:
      getSamplesCountDiff in class AbstractReport
    • 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