Class Series

    • Field Detail

      • file

        protected String file
        Relative path to the data series property file. Mandatory.
      • label

        protected String label
        Data series legend label. Optional.
      • fileType

        protected String fileType
        Data series type. Mandatory. This can be csv, xml, or properties file. This should be an enum, but I am not sure how to support that with stapler at the moment
    • Method Detail

      • getFile

        public String getFile()
      • getLabel

        public String getLabel()
      • getFileType

        public String getFileType()
      • loadSeries

        public abstract List<PlotPoint> loadSeries​(FilePath workspaceRootDir,
                                                   int buildNumber,
                                                   PrintStream logger)
        Retrieves the plot data for one series after a build from the workspace.
        Parameters:
        workspaceRootDir - the root directory of the workspace
        buildNumber - the build Number
        logger - the logger to use
        Returns:
        a PlotPoint array of points to plot
      • getUrl

        protected String getUrl​(String baseUrl,
                                String label,
                                int index,
                                int buildNumber)
        Return the url that should be used for this point.
        Parameters:
        label - Name of the column
        index - Index of the column
        buildNumber - The build number
        Returns:
        url for the label.