@Test public void testDefaultValue() { metrics.declareCounter("some.name", hostDimension); assertEquals(getMetricsForDimension(hostDimension).get("some.name"), 0L); }
public Counter declareCounter(String name) { return declareCounter(name, Dimensions.NONE); }
Metrics { public Counter declareCounter(String name) { return declareCounter(name, Dimensions.NONE); } }
Metrics { public Counter declareCounter(String name) { return declareCounter(name, Dimensions.NONE); } @Inject  Metrics(); }
Metrics { public Counter declareCounter(String name) { return declareCounter(name, Dimensions.NONE); } @Inject  Metrics(); Counter declareCounter(String name); Counter declareCounter(String name, Dimensions dimensions); Counter declareCounter(String application, String name, Dimensions dimensions, DimensionType type); Gauge declareGauge(String name); Gauge declareGauge(String name, Dimensions dimensions); Gauge declareGauge(String application, String name, Dimensions dimensions, DimensionType type); List<DimensionMetrics> getDefaultMetrics(); List<DimensionMetrics> getMetricsByType(DimensionType type); void deleteMetricByDimension(String name,  Dimensions dimensionsToRemove, DimensionType type); }
Metrics { public Counter declareCounter(String name) { return declareCounter(name, Dimensions.NONE); } @Inject  Metrics(); Counter declareCounter(String name); Counter declareCounter(String name, Dimensions dimensions); Counter declareCounter(String application, String name, Dimensions dimensions, DimensionType type); Gauge declareGauge(String name); Gauge declareGauge(String name, Dimensions dimensions); Gauge declareGauge(String application, String name, Dimensions dimensions, DimensionType type); List<DimensionMetrics> getDefaultMetrics(); List<DimensionMetrics> getMetricsByType(DimensionType type); void deleteMetricByDimension(String name,  Dimensions dimensionsToRemove, DimensionType type); static final String APPLICATION_HOST; static final String APPLICATION_NODE; }