Class GaugeDefinition

    • Constructor Detail

      • GaugeDefinition

        public GaugeDefinition​(String id,
                               String displayName)
        Creates a definition with default values. This aggregates via sum. The unit of measure is unspecified. Ranges aggregate by RangeAggregator.WIDEST.
        Parameters:
        id - the id for the statistic
        displayName - the display name of this statistic
    • Method Detail

      • aggregator

        public GaugeAggregator aggregator()
        Returns the aggregator to use for aggregating the gauge.
        Returns:
        the aggregator to use for aggregating the gauge.
      • unitOfMeasure

        public UnitOfMeasure unitOfMeasure()
        Returns the unit of measure.
        Returns:
        the unit of measure.
      • shortName

        public String shortName()
        Returns a shortened name that can be used in some ui display contexts. By default this is the same as StatisticDefinition.displayName().
        Returns:
        a short name
      • rangeAggregator

        public RangeAggregator rangeAggregator()
        Returns the aggregator to use for aggregating the gauge's range of allowed values.
        Returns:
        the aggregator to use for aggregating the gauge's range of allowed values.
      • aggregator

        public GaugeDefinition aggregator​(GaugeAggregator aggregator)
        Sets the aggregator to use for aggregating the gauge.
        Parameters:
        aggregator - the aggregation for the gauge.
        Returns:
        a newly-created GaugeStatisticDefinition.
      • rangeAggregator

        public GaugeDefinition rangeAggregator​(RangeAggregator rangeAggregator)
        Sets the aggregator to use for aggregating the gauge's range of allowed values.
        Parameters:
        aggregator - the aggregation for the gauge's range
        Returns:
        a newly-created GaugeStatisticDefinition.
      • unitOfMeasure

        public GaugeDefinition unitOfMeasure​(UnitOfMeasure unitOfMeasure)
        Sets the unit of measure.
        Parameters:
        unitOfMeasure - the unit of measure
        Returns:
        a newly-created GaugeStatisticDefinition.
      • shortName

        public GaugeDefinition shortName​(String shortName)
        Sets a shortened name that can be used in some ui display contexts. By default this is the same as StatisticDefinition.displayName().
        Parameters:
        shortName - a short name
        Returns:
        a newly-created GaugeStatisticDefinition.
      • nonPartitioned

        public GaugeDefinition nonPartitioned​(boolean nonPartitioned)
        Description copied from class: StatisticDefinition
        Indicates that this statistic refers to a concept that is inherently non-parallel. An example would be planning statistics.
        Specified by:
        nonPartitioned in class StatisticDefinition<GaugeSupplier>
        Parameters:
        nonPartitioned - whether this statistic refers to a non-partitioned concept
        Returns:
        a newly-created StatisticDefinition.