java.lang.Object
java.lang.Enum<MetricType>
org.sentrysoftware.metricshub.engine.connector.model.metric.MetricType
All Implemented Interfaces:
Serializable, Comparable<MetricType>, Constable, IMetricType

public enum MetricType extends Enum<MetricType> implements IMetricType
The MetricType enum represents different types of metrics. Each type is associated with a specific metric key type, and each key type can accept a visitor to implement its specific business logic.
  • Enum Constant Details

    • GAUGE

      public static final MetricType GAUGE
      Gauge Metric Type
    • COUNTER

      public static final MetricType COUNTER
      Counter Metric Type
    • UP_DOWN_COUNTER

      public static final MetricType UP_DOWN_COUNTER
      Up-Down Counter Metric Type
  • Method Details

    • values

      public static MetricType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetricType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public MetricType get()
      Description copied from interface: IMetricType
      Gets the metric type.
      Specified by:
      get in interface IMetricType
      Returns:
      The metric type.