java.lang.Object
org.sentrysoftware.metricshub.engine.telemetry.metric.AbstractMetric
org.sentrysoftware.metricshub.engine.telemetry.metric.StateSetMetric

public class StateSetMetric extends AbstractMetric
The `StateSetMetric` class represents a metric that holds a state value from a predefined set of states.
  • Field Details

    • STATE_SET_METRIC_TYPE

      public static final String STATE_SET_METRIC_TYPE
      The type identifier for the StateSetMetric.
      See Also:
  • Constructor Details

    • StateSetMetric

      public StateSetMetric(String name, Long collectTime, Map<String,String> attributes, String value, String[] stateSet)
      Constructs a new StateSetMetric.
      Parameters:
      name - The name of the metric.
      collectTime - The time when the metric was collected.
      attributes - Additional attributes associated with the metric.
      value - The current value of the state.
      stateSet - The set of possible states for the metric.
  • Method Details