@Configuration @EnableScheduling public class MetricConfiguration extends Object
Constructor and Description |
---|
MetricConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.yahoo.bullet.common.metrics.MetricPublisher |
metricPublisher(boolean isEnabled,
String config)
Creates a
MetricPublisher instance from a provided config. |
@Bean public com.yahoo.bullet.common.metrics.MetricPublisher metricPublisher(@Value(value="${bullet.metric.enabled}") boolean isEnabled, @Value(value="${bullet.metric.config}") String config)
MetricPublisher
instance from a provided config.isEnabled
- A boolean denoting if the metric module is enabled.config
- The String path to the config file.MetricPublisher
.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.