Class TrendModel.TrendSource

java.lang.Object
io.jenkins.plugins.analysis.core.model.TrendModel.TrendSource
Enclosing class:
TrendModel

public static final class TrendModel.TrendSource extends Object
A source of a trend chart: either a single tool or the combination of all tools of a run.
  • Method Details

    • getId

      public String getId()
      Returns the ID of this source: the ID of the tool, or "*" for all tools.
      Returns:
      the ID
    • getDisplayName

      public String getDisplayName()
      Returns the name of this source.
      Returns:
      the display name
    • getChartTypes

      public List<TrendModel.ChartType> getChartTypes()
      Returns the chart types that are available for this source. The health chart requires an enabled health report, so it is never available for all tools (each tool has its own thresholds). The chart with the issues per tool requires at least two tools (or origins of an aggregated result).
      Returns:
      the available chart types
    • getChartIds

      public String getChartIds()
      Returns the IDs of the available chart types as a space separated list. Used as data attribute of the options in the select box.
      Returns:
      the IDs of the available chart types
    • getDefaultChartType

      public TrendModel.ChartType getDefaultChartType()
      Returns the chart type that is shown if no (or an unavailable) chart type has been selected.
      Returns:
      the default chart type