Examples of InMemoryRichGaugeRepository


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
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.