@Test public void testMetricData() { val kvTags = MetricUtil.defaultKvTags(); val vTags = MetricUtil.defaultVTags(); val metricDef = MetricUtil.metricDefinition(kvTags, vTags); val metricData = MetricUtil.metricData(metricDef); assertEquals(0.0, metricData.getValue(), 0.001); }
public static MetricData metricData(MetricDefinition metricDef) { notNull(metricDef, "metricDef can't be null"); return metricData(metricDef, 0.0); }
MetricUtil { public static MetricData metricData(MetricDefinition metricDef) { notNull(metricDef, "metricDef can't be null"); return metricData(metricDef, 0.0); } }
MetricUtil { public static MetricData metricData(MetricDefinition metricDef) { notNull(metricDef, "metricDef can't be null"); return metricData(metricDef, 0.0); }  }
MetricUtil { public static MetricData metricData(MetricDefinition metricDef) { notNull(metricDef, "metricDef can't be null"); return metricData(metricDef, 0.0); }  static Map<String, String> defaultKvTags(); static Set<String> defaultVTags(); static MetricDefinition metricDefinition(); static MetricDefinition metricDefinition(Map<String, String> kvTags, Set<String> vTags); static MetricData metricData(MetricDefinition metricDef); static MetricData metricData(MetricDefinition metricDef, double value); static MetricData metricData(MetricDefinition metricDef, double value, long epochSecond); static String getDataRetrievalValue(MappedMetricData mappedMetricData, String dataRetrievalTagKey); }
MetricUtil { public static MetricData metricData(MetricDefinition metricDef) { notNull(metricDef, "metricDef can't be null"); return metricData(metricDef, 0.0); }  static Map<String, String> defaultKvTags(); static Set<String> defaultVTags(); static MetricDefinition metricDefinition(); static MetricDefinition metricDefinition(Map<String, String> kvTags, Set<String> vTags); static MetricData metricData(MetricDefinition metricDef); static MetricData metricData(MetricDefinition metricDef, double value); static MetricData metricData(MetricDefinition metricDef, double value, long epochSecond); static String getDataRetrievalValue(MappedMetricData mappedMetricData, String dataRetrievalTagKey);  }