Beispiel #1
0
 private List<MetricTagValue> humanToTagNames(List<MetricTagValue> tagValues) {
   List<MetricTagValue> result = Lists.newArrayList();
   for (MetricTagValue tagValue : tagValues) {
     String tagName = humanToTagName(tagValue.getName());
     result.add(new MetricTagValue(tagName, tagValue.getValue()));
   }
   return result;
 }
Beispiel #2
0
  private Map<String, String> parseTagValuesAsMap(List<String> tags) {
    List<MetricTagValue> tagValues = parseTagValues(tags);

    Map<String, String> result = Maps.newHashMap();
    for (MetricTagValue tagValue : tagValues) {
      result.put(tagValue.getName(), tagValue.getValue());
    }
    return result;
  }