@Test public void getTimer1() { List<SpectatorEndpoint.TimerInfo> datapoints = get("name,timer1,:eq"); Assert.assertEquals(1, datapoints.size()); Assert.assertEquals(2, datapoints.get(0).getTags().size()); Assert.assertEquals(1L, datapoints.get(0).getCount()); Assert.assertEquals(42000000000L, datapoints.get(0).getTotalTime()); }
@Override public Object get() { return get(":true"); }
SpectatorEndpoint implements HttpEndpoint { @Override public Object get() { return get(":true"); } }
SpectatorEndpoint implements HttpEndpoint { @Override public Object get() { return get(":true"); } @Inject  SpectatorEndpoint(Registry registry); }
SpectatorEndpoint implements HttpEndpoint { @Override public Object get() { return get(":true"); } @Inject  SpectatorEndpoint(Registry registry); @Override Object get(); @Override Object get(String path); }
SpectatorEndpoint implements HttpEndpoint { @Override public Object get() { return get(":true"); } @Inject  SpectatorEndpoint(Registry registry); @Override Object get(); @Override Object get(String path);  }