Class GaugeAdapter.FunctionGauge<S,​R extends Number>

    • Field Detail

      • gauge

        io.micrometer.core.instrument.Gauge gauge
      • obj

        final S obj
    • Constructor Detail

      • FunctionGauge

        FunctionGauge​(S obj,
                      Function<S,​R> f)
    • Method Detail

      • getMeter

        public io.micrometer.core.instrument.Meter getMeter()
        Specified by:
        getMeter in interface MeterHolder
      • getValue

        public R getValue()
        Specified by:
        getValue in interface org.eclipse.microprofile.metrics.Gauge<S>
      • getType

        public org.eclipse.microprofile.metrics.MetricType getType()
        Specified by:
        getType in interface MeterHolder