Class TestMetadataValueType

  • All Implemented Interfaces:
    ValueProvider, ValueType

    public class TestMetadataValueType
    extends Object
    implements ValueType
    ValueType for numeric test metadata graphs. Key chart settings: testNameId, metadataKey, buildTypeId
    Since:
    2018.2
    • Method Detail

      • getDataSet

        @NotNull
        public List<BuildValue> getDataSet​(@NotNull
                                           ChartSettings chartSettings)
        Description copied from interface: ValueProvider
        This should return dataset based given chartSettings
        Specified by:
        getDataSet in interface ValueProvider
        Parameters:
        chartSettings - to be applied to dataset
        Returns:
        filtered dataset
      • hasData

        public boolean hasData​(ChartSettings chartSettings)
        Description copied from interface: ValueProvider
        Returns true if at least one not-null value is available for this ValueProvider for given settings
        Specified by:
        hasData in interface ValueProvider
        Parameters:
        chartSettings - dataset chartSettings
        Returns:
        true if there are some data available for this ValueProvider with given settings
      • getKey

        @NotNull
        public String getKey()
        Description copied from interface: ValueProvider
        Metric id i.e. "BuildDuration", this key should be unique
        Specified by:
        getKey in interface ValueProvider
        Returns:
        Unique key name
      • getValueFormat

        @Nullable
        public String getValueFormat()
        Description copied from interface: ValueType

        Format name for Values (point hints and axis).

        Following formats are supported by default:

        • text - no special formatting, value is treat as float
        • integer - only integer values
        • duration - value is treat as milliseconds and is formatted
        • size - value is treat as bytes and is formatted
        • percent - value is treat as N%
        • percentBy1 - value is treat as (N * 100)%

        Specified by:
        getValueFormat in interface ValueType
        Returns:
        format name.
      • getValueFormat

        @Nullable
        public String getValueFormat​(@NotNull
                                     ChartSettings chartSettings)
        Description copied from interface: ValueType
        Return format type for the values, according to provided chartSettings. By default, delegates to getValueFormat()

        Format name for Values (point hints and axis).

        Following formats are supported by default:

        • text - no special formatting, value is treat as float
        • integer - only integer values
        • duration - value is treat as milliseconds and is formatted
        • size - value is treat as bytes and is formatted
        • percent - value is treat as N%
        • percentBy1 - value is treat as (N * 100)%

        Specified by:
        getValueFormat in interface ValueType
        Parameters:
        chartSettings - context which can be used to determine the format
        Returns:
        see above
      • getSeriesColor

        @Nullable
        public String getSeriesColor​(String s)
        Description copied from interface: ValueType

        Allows to provide special color coding for series.

        Color should be formatted as web color - hex "#rrggbb" (or short hex form "#rgb") or color name.

        Specified by:
        getSeriesColor in interface ValueType
        Parameters:
        s - series key
        Returns:
        series color, null to autogenerate by renderer
      • getSeriesGenericName

        public String getSeriesGenericName()
        Description copied from interface: ValueType
        Generic name for this value's series
        Specified by:
        getSeriesGenericName in interface ValueType
        Returns:
        short name string