public static PolledMeter . Builder polledGauge ( MonitorConfig config ) { long delayMillis = Math . max ( Pollers . getPollingIntervals ( ) . get ( 0 ) - 1000 , 5000 ) ; Id id = createId ( config ) ; PolledMeter . remove ( registry , id ) ; return PolledMeter . using ( registry ) . withId ( id ) . withDelay ( Duration . ofMillis ( delayMillis ) ) . scheduleOn ( gaugePool ( ) ) ; }
Create builder for a polled gauge based on the config .