def wf_metric_name?(metric)
      if metric.is_a?(String) && metric.size < 1024 &&
         (metric.match(/^#{DELTA}?[\w\-\.]+$/) ||
          metric.match(%r{^\"#{DELTA}?[\w\-\.\/,]+\"$}))
        return true
      end

      raise Wavefront::Exception::InvalidMetricName
    end
def wf_metric_name?(metric)
      if metric.is_a?(String) && metric.size < 1024 &&
         (metric.match(/^#{DELTA}?[\w\-\.]+$/) ||
          metric.match(%r{^\"#{DELTA}?[\w\-\.\/,]+\"$}))
        return true
      end

      raise Wavefront::Exception::InvalidMetricName
    end
Ensure the given argument is a valid Wavefront metric name, or
 path.

 @param metric [String] the metric name to validate
 @return True if the metric name is valid
 @raise Wavefront::Exception::InvalidMetricName if metric name
 is not valid.