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

com.ringcentral.platform.metrics.configs.MetricConfig Maven / Gradle / Ivy

package com.ringcentral.platform.metrics.configs;

import com.ringcentral.platform.metrics.MetricContext;
import com.ringcentral.platform.metrics.labels.LabelValues;

import static org.apache.commons.lang3.StringUtils.isBlank;

public interface MetricConfig {
    boolean isEnabled();

    default boolean hasDescription() {
        return !isBlank(description());
    }

    String description();

    default boolean hasPrefixLabelValues() {
        return prefixLabelValues() != null && !prefixLabelValues().isEmpty();
    }

    LabelValues prefixLabelValues();
    MetricContext context();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy