@Test public void testSimpleLookoutClient() throws Exception { LookoutRegistry lookoutRegistry = new LookoutRegistry(new LookoutConfig()); SimpleLookoutClient client = new SimpleLookoutClient("demo", lookoutRegistry); client.addCommonTags(new BasicTag("k", "v")); Assert.assertEquals("v", lookoutRegistry.getCommonTagValue("k")); Assert.assertEquals("demo", lookoutRegistry.getCommonTagValue("app")); Assert.assertSame(client.getLookoutConfig(), lookoutRegistry.getConfig()); Assert.assertSame(lookoutRegistry, ((CompositeRegistry) client.getRegistry()) .getRegistries().iterator().next()); client.close(); }
public SimpleLookoutClient(String appName, MetricRegistry... registries) { this(appName, null, registries); }
SimpleLookoutClient extends AbstractLookoutClient { public SimpleLookoutClient(String appName, MetricRegistry... registries) { this(appName, null, registries); } }
SimpleLookoutClient extends AbstractLookoutClient { public SimpleLookoutClient(String appName, MetricRegistry... registries) { this(appName, null, registries); } SimpleLookoutClient(String appName, MetricRegistry... registries);  SimpleLookoutClient(String appName, LookoutConfig config, MetricRegistry... registries); }
SimpleLookoutClient extends AbstractLookoutClient { public SimpleLookoutClient(String appName, MetricRegistry... registries) { this(appName, null, registries); } SimpleLookoutClient(String appName, MetricRegistry... registries);  SimpleLookoutClient(String appName, LookoutConfig config, MetricRegistry... registries); MetricConfig getLookoutConfig(); void addCommonTags(BasicTag basicTag); }
SimpleLookoutClient extends AbstractLookoutClient { public SimpleLookoutClient(String appName, MetricRegistry... registries) { this(appName, null, registries); } SimpleLookoutClient(String appName, MetricRegistry... registries);  SimpleLookoutClient(String appName, LookoutConfig config, MetricRegistry... registries); MetricConfig getLookoutConfig(); void addCommonTags(BasicTag basicTag);  }