All Implemented Interfaces:
ModelObject

public class ETLogReport extends AbstractArchiveFileReport
Holds a link to the ecu.test log report. The build that holds the artifact is resolved by StaplerRequest.findAncestorObject(Class) at runtime.
  • Constructor Details

    • ETLogReport

      public ETLogReport(String id, String title, String fileName, long fileSize, List<ETLogAnnotation> logs, int warningLogCount, int errorLogCount)
      Instantiates a new ETLogReport.
      Parameters:
      id - the id used in the report URL
      title - the report title
      fileName - the log file name
      fileSize - the log file size
      logs - the list of annotated logs
      warningLogCount - the total count of warning logs
      errorLogCount - the total count of error logs
  • Method Details

    • getLogs

      public List<ETLogAnnotation> getLogs()
    • getWarningLogs

      public List<ETLogAnnotation> getWarningLogs()
      Gets the warning logs.
      Returns:
      the warning logs
    • getErrorLogs

      public List<ETLogAnnotation> getErrorLogs()
      Gets the error logs.
      Returns:
      the error logs
    • getWarningLogCount

      public int getWarningLogCount()
      Gets the total count of warning logs.
      Returns:
      the warningLogCount
    • getErrorLogCount

      public int getErrorLogCount()
      Gets the total count of error logs.
      Returns:
      the errorLogCount
    • getTotalWarningCount

      public int getTotalWarningCount()
      Gets the total count of warning logs including all sub reports.
      Returns:
      the total warning log count
    • getTotalErrorCount

      public int getTotalErrorCount()
      Gets the total count of warning logs including all sub reports.
      Returns:
      the total error log count
    • getArchiveDir

      public String getArchiveDir()
      Description copied from class: AbstractArchiveFileReport
      Gets the archive directory containing the stored files.
      Specified by:
      getArchiveDir in class AbstractArchiveFileReport
      Returns:
      the archive directory