@Test public void getGauge1() { List<SpectatorEndpoint.GaugeInfo> datapoints = get("name,gauge1,:eq"); Assert.assertEquals(1, datapoints.size()); Assert.assertEquals(1, datapoints.get(0).getTags().size()); Assert.assertEquals(100.0, datapoints.get(0).getValue(), 1e-12); }
@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);  }