code: public String buildMessage(String metricName, Object value, long timestamp) {
          if (value instanceof Boolean) {
              return metricPathPrefix + metricName + " " + ((Boolean)value ? 1 : 0) + " " + timestamp;
          }
          return metricPathPrefix + metricName + " " + value + " " + timestamp;
      }
docs: Builds a metric string to send to a Graphite instance.
  
  @return The metric string without trailing newline