Enum MetricKind

    • Enum Constant Detail

      • METRIC_KIND_UNSPECIFIED

        public static final MetricKind METRIC_KIND_UNSPECIFIED
        Do not use this default value.
      • GAUGE

        public static final MetricKind GAUGE
        An instantaneous measurement of a value.
      • DELTA

        public static final MetricKind DELTA
        The change in a value during a time interval.
      • CUMULATIVE

        public static final MetricKind CUMULATIVE
        A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
    • Method Detail

      • values

        public static MetricKind[] 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 (MetricKind c : MetricKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MetricKind 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
      • value

        public int value()