Enum MetricDataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MetricDataType>

    public enum MetricDataType
    extends java.lang.Enum<MetricDataType>
    The type of metric PointData.
    Since:
    1.14.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DOUBLE_GAUGE
      A Gauge represents a measurement of a double value at a moment in time.
      DOUBLE_SUM
      A Sum of double values.
      EXPONENTIAL_HISTOGRAM
      An Exponential Histogram represents an approximate representation of the distribution of measurements recorded.
      HISTOGRAM
      A Histogram represents an approximate representation of the distribution of measurements recorded.
      LONG_GAUGE
      A Gauge represents a measurement of a long value at a moment in time.
      LONG_SUM
      A Sum of long (int64) values.
      SUMMARY
      A Summary of measurements of numeric values, the sum of all measurements and the total number of measurements recorded, and quantiles describing the distribution of measurements (often including minimum "0.0" and maximum "1.0" quantiles).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MetricDataType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MetricDataType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MetricDataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LONG_GAUGE

        public static final MetricDataType LONG_GAUGE
        A Gauge represents a measurement of a long value at a moment in time.
      • DOUBLE_GAUGE

        public static final MetricDataType DOUBLE_GAUGE
        A Gauge represents a measurement of a double value at a moment in time. Generally only one instance of a given Gauge metric will be reported per reporting interval.
      • LONG_SUM

        public static final MetricDataType LONG_SUM
        A Sum of long (int64) values.
      • DOUBLE_SUM

        public static final MetricDataType DOUBLE_SUM
        A Sum of double values.
      • SUMMARY

        public static final MetricDataType SUMMARY
        A Summary of measurements of numeric values, the sum of all measurements and the total number of measurements recorded, and quantiles describing the distribution of measurements (often including minimum "0.0" and maximum "1.0" quantiles).
      • HISTOGRAM

        public static final MetricDataType HISTOGRAM
        A Histogram represents an approximate representation of the distribution of measurements recorded.
      • EXPONENTIAL_HISTOGRAM

        public static final MetricDataType EXPONENTIAL_HISTOGRAM
        An Exponential Histogram represents an approximate representation of the distribution of measurements recorded. The bucket boundaries follow a pre-determined exponential formula.
    • Constructor Detail

      • MetricDataType

        private MetricDataType()
    • Method Detail

      • values

        public static MetricDataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MetricDataType c : MetricDataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MetricDataType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null