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

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

package com.ringcentral.platform.metrics.configs;

import com.ringcentral.platform.metrics.MetricContext;
import com.ringcentral.platform.metrics.labels.*;
import com.ringcentral.platform.metrics.measurables.Measurable;
import com.ringcentral.platform.metrics.names.MetricName;

import java.time.Duration;
import java.util.*;

public interface MeterSliceConfig {

    interface LevelInstanceNameProvider {
        MetricName nameForLevelInstance(List values);
    }

    boolean isEnabled();
    MetricName name();

    default boolean hasPredicate() {
        return predicate() != null;
    }

    LabelValuesPredicate predicate();

    default boolean hasLabels() {
        return labels() != null && !labels().isEmpty();
    }

    List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy