code: protected void setMetric(String metric) {
          requireArgument(metric != null && !metric.isEmpty(), "Metric name cannot be null or empty.");
          _metric = metric;
      }
docs: Sets the metric name for the query.
  
  @param  metric  The metric name.  Cannot be null.