Package org.springframework.boot.actuate.endpoint

Examples of org.springframework.boot.actuate.endpoint.RichGaugeReaderPublicMetrics.metrics()


    RichGaugeReaderPublicMetrics publicMetrics = context
        .getBean(RichGaugeReaderPublicMetrics.class);
    assertNotNull(publicMetrics);

    Collection<Metric<?>> metrics = publicMetrics.metrics();
    assertNotNull(metrics);
    assertEquals(metrics.size(), 6);

    assertHasMetric(metrics, new Metric<Double>("bar.val", 3.7d));
    assertHasMetric(metrics, new Metric<Double>("bar.avg", 3.7d));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.