Class SummarizedCounter

    • Method Detail

      • name

        public final String name()

        The counter name.

        Returns:
        The counter name.
      • max

        public final Double max()

        The maximum value of the counter for a specified time period.

        Returns:
        The maximum value of the counter for a specified time period.
      • average

        public final Double average()

        The average value of the counter for a specified time period.

        Returns:
        The average value of the counter for a specified time period.
      • sum

        public final Double sum()

        The total of counter values for a specified time period.

        Returns:
        The total of counter values for a specified time period.
      • n

        public final Integer n()

        The number of counters for a specified time period.

        Returns:
        The number of counters for a specified time period.
      • unit

        public final String unit()

        The unit of the counters.

        Returns:
        The unit of the counters.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)