Package org.springframework.boot.actuate.metrics.rich

Examples of org.springframework.boot.actuate.metrics.rich.InMemoryRichGaugeRepository


*/
public class RichGaugeReaderPublicMetricsTests {

  @Test
  public void testMetrics() throws Exception {
    InMemoryRichGaugeRepository repository = new InMemoryRichGaugeRepository();

    repository.set(new Metric<Double>("a", 0.d, new Date()));
    repository.set(new Metric<Double>("a", 0.5d, new Date()));

    RichGaugeReaderPublicMetrics metrics = new RichGaugeReaderPublicMetrics(
        repository);

    Map<String, Metric<?>> results = new HashMap<String, Metric<?>>();
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.metrics.rich.InMemoryRichGaugeRepository

Copyright © 2018 www.massapicom. 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.