本文整理汇总了Java中org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics类的典型用法代码示例。如果您正苦于以下问题:Java MetricReaderPublicMetrics类的具体用法?Java MetricReaderPublicMetrics怎么用?Java MetricReaderPublicMetrics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MetricReaderPublicMetrics类属于org.springframework.boot.actuate.endpoint包,在下文中一共展示了MetricReaderPublicMetrics类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: dropwizardPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public MetricReaderPublicMetrics dropwizardPublicMetrics(
MetricRegistry metricRegistry) {
MetricRegistryMetricReader reader = new MetricRegistryMetricReader(
metricRegistry);
return new MetricReaderPublicMetrics(reader);
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:MetricsDropwizardAutoConfiguration.java
示例2: metricReaderPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public MetricReaderPublicMetrics metricReaderPublicMetrics() {
return new MetricReaderPublicMetrics(
new CompositeMetricReader(this.metricReaders == null ? new MetricReader[0]
: this.metricReaders
.toArray(new MetricReader[this.metricReaders.size()])));
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:PublicMetricsAutoConfiguration.java
示例3: springIntegrationPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = "springIntegrationPublicMetrics")
public MetricReaderPublicMetrics springIntegrationPublicMetrics(
IntegrationMBeanExporter exporter) {
return new MetricReaderPublicMetrics(
new SpringIntegrationMetricReader(exporter));
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:PublicMetricsAutoConfiguration.java
示例4: springIntegrationPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean
public MetricReaderPublicMetrics springIntegrationPublicMetrics(
IntegrationMBeanExporter exporter) {
return new MetricReaderPublicMetrics(
new SpringIntegrationMetricReader(exporter));
}
开发者ID:Nephilim84,项目名称:contestparser,代码行数:8,代码来源:PublicMetricsAutoConfiguration.java
示例5: threadPoolMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public PublicMetrics threadPoolMetrics() {
return new PublicMetricsAggregator(
new ThreadPoolMetrics(ctx),
new MetricReaderPublicMetrics(metricRepository())
);
}
开发者ID:datenstrudel,项目名称:bulbs-core,代码行数:8,代码来源:MonitoringConfig.java
示例6: metricsAggregate
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public PublicMetrics metricsAggregate() {
return new MetricReaderPublicMetrics(aggregatesMetricReader());
}
开发者ID:Catalysts,项目名称:cat-boot,代码行数:5,代码来源:ClusterMetricsConfig.java
示例7: metricReaderPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Test
public void metricReaderPublicMetrics() throws Exception {
load();
assertThat(this.context.getBeansOfType(MetricReaderPublicMetrics.class))
.hasSize(1);
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:7,代码来源:PublicMetricsAutoConfigurationTests.java
示例8: metricsAggregate
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public PublicMetrics metricsAggregate() {
return new MetricReaderPublicMetrics(aggregatesMetricReader());
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:AggregateMetricsConfiguration.java
示例9: metricReaderPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public MetricReaderPublicMetrics metricReaderPublicMetrics() {
return new MetricReaderPublicMetrics(new CompositeMetricReader(
this.metricReaders.toArray(new MetricReader[0])));
}
开发者ID:Nephilim84,项目名称:contestparser,代码行数:6,代码来源:PublicMetricsAutoConfiguration.java
示例10: metricReaderPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Test
public void metricReaderPublicMetrics() throws Exception {
load();
assertEquals(1,
this.context.getBeansOfType(MetricReaderPublicMetrics.class).size());
}
开发者ID:Nephilim84,项目名称:contestparser,代码行数:7,代码来源:PublicMetricsAutoConfigurationTests.java
示例11: spectatorPublicMetrics
import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics; //导入依赖的package包/类
@Bean
public MetricReaderPublicMetrics spectatorPublicMetrics(Registry metricRegistry) {
SpectatorMetricReader reader = new SpectatorMetricReader(metricRegistry);
return new MetricReaderPublicMetrics(reader);
}
开发者ID:netflix-spring-one,项目名称:spring-cloud-netflix-contrib,代码行数:6,代码来源:SpectatorAutoConfiguration.java
注:本文中的org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论