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

public class NumberMetric extends AbstractMetric
The NumberMetric class represents a numeric metric in the telemetry system. It extends the AbstractMetric class and includes additional properties such as value and previousValue.
  • Field Details

    • NUMBER_METRIC_TYPE

      public static final String NUMBER_METRIC_TYPE
      The constant representing the type of the metric (NumberMetric).
      See Also:
  • Constructor Details

    • NumberMetric

      public NumberMetric(String name, Long collectTime, Map<String,String> attributes, Double value)
      Creates a new instance of NumberMetric using the provided parameters.
      Parameters:
      name - The name of the metric.
      collectTime - The timestamp when the metric was collected.
      attributes - Additional attributes associated with the metric.
      value - The numeric value of the metric.
  • Method Details