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

com.ringcentral.platform.metrics.configs.builders.BaseMetricConfigBuilder Maven / Gradle / Ivy

The newest version!
package com.ringcentral.platform.metrics.configs.builders;

import com.ringcentral.platform.metrics.configs.BaseMetricConfig;

public class BaseMetricConfigBuilder
    extends AbstractMetricConfigBuilder
    implements MetricConfigBuilder {

    public static BaseMetricConfigBuilder metric() {
        return metricConfigBuilder();
    }

    public static BaseMetricConfigBuilder withMetric() {
        return metricConfigBuilder();
    }

    public static BaseMetricConfigBuilder metricConfigBuilder() {
        return new BaseMetricConfigBuilder();
    }

    @Override
    public BaseMetricConfig build() {
        return new BaseMetricConfig(
            hasEnabled() ? getEnabled() : DEFAULT_ENABLED,
            description(),
            prefixLabelValues(),
            context().unmodifiable());
    }

    @Override
    public BaseMetricConfigBuilder builder() {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy