com.ringcentral.platform.metrics.configs.AbstractMeterSliceConfig 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.*;
import static com.ringcentral.platform.metrics.UnmodifiableMetricContext.emptyUnmodifiableMetricContext;
import static java.util.Collections.*;
import static java.util.Objects.requireNonNull;
public abstract class AbstractMeterSliceConfig implements MeterSliceConfig {
private final boolean enabled;
private final MetricName name;
private final LabelValuesPredicate predicate;
private final List