Enum MetricDataType

    • 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. Generally only one instance of a given Gauge metric will be reported per reporting interval.
      • 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.
      • SUMMARY

        public static final MetricDataType SUMMARY
        A Summary of measurements of numeric values, containing the minimum value recorded, the maximum value recorded, the sum of all measurements and the total number of measurements recorded.
      • HISTOGRAM

        public static final MetricDataType HISTOGRAM
        A Histogram represents an approximate representation of the distribution of measurements recorded.
    • 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​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null