Class ActuatorMetricsResponse

java.lang.Object
com.nmontytskyi.monitoring.server.polling.dto.ActuatorMetricsResponse

public class ActuatorMetricsResponse extends Object
  • Constructor Details

    • ActuatorMetricsResponse

      public ActuatorMetricsResponse()
  • Method Details

    • getValue

      public double getValue()
      Returns the value of the first measurement (used for simple gauge/counter metrics).
    • getStatisticValue

      public Optional<Double> getStatisticValue(String statisticName)
      Returns the value of the measurement whose statistic field matches the given name (case-insensitive). Used for Timer metrics where COUNT / TOTAL_TIME / MAX are separate entries in the measurements array — not URL tag-filter values.