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

com.ringcentral.platform.metrics.spring.prometheus.MfPrometheusConfig Maven / Gradle / Ivy

There is a newer version: 4.0.0-RELEASE
Show newest version
package com.ringcentral.platform.metrics.spring.prometheus;

import com.ringcentral.platform.metrics.samples.InstanceSamplesProvider;
import com.ringcentral.platform.metrics.samples.prometheus.PrometheusInstanceSample;
import com.ringcentral.platform.metrics.samples.prometheus.PrometheusSample;

public class MfPrometheusConfig {

    private final InstanceSamplesProvider instanceSamplesProvider;
    private final boolean convertNameToLowercase;

    public MfPrometheusConfig(
        InstanceSamplesProvider instanceSamplesProvider,
        boolean convertNameToLowercase) {

        this.instanceSamplesProvider = instanceSamplesProvider;
        this.convertNameToLowercase = convertNameToLowercase;
    }

    public boolean hasInstanceSamplesProvider() {
        return instanceSamplesProvider != null;
    }

    public InstanceSamplesProvider instanceSamplesProvider() {
        return instanceSamplesProvider;
    }

    public boolean convertNameToLowercase() {
        return convertNameToLowercase;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy