All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.common.metric.ConsistencyMetrics Maven / Gradle / Ivy

The newest version!
package pl.allegro.tech.hermes.common.metric;

import io.micrometer.core.instrument.MeterRegistry;

import java.util.function.ToDoubleFunction;


public class ConsistencyMetrics {
    private final MeterRegistry meterRegistry;

    ConsistencyMetrics(MeterRegistry meterRegistry) {
        this.meterRegistry = meterRegistry;

    }

    public  void registerStorageConsistencyGauge(T stateObject, ToDoubleFunction valueFunction) {
        meterRegistry.gauge("storage.consistency", stateObject, valueFunction);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy