code: protected char getStatsdMetricType(@Nonnull QueryResult result) {
          String metricType = result.getType();
          char statsBucketType;
          if(metricType == null || metricType.equalsIgnoreCase("counter")) {
              statsBucketType = 'c';
          } else if(metricType.equalsIgnoreCase("gauge")) {
              statsBucketType = 'g';
          } else if (metricType.equalsIgnoreCase("set")) {
              statsBucketType = 's';
          } else if(metricType.length() == 1) {
              statsBucketType = metricType.charAt(0);
          } else {
              logger.warn("Unknown metric type for {}, default to 'c'", result);
              statsBucketType = 'c';
          }
          return statsBucketType;
      }
docs: See <a href="https://github.com/etsy/statsd/blob/master/docs/metric_types.md">StatsD Metric Types</a>.
  
  @param result
  @return StatsD metric type such as 'c', 'g' or 's'. Default to 'c' if not known, return the metric type itself if its length == 1