code: public void setQuery(final String metric, final Map<String, String> tags) {
      this.metric = metric;
      this.tags = tags;
      metric_uid = tsdb.getUID(UniqueIdType.METRIC, metric);
      tag_uids = Tags.resolveAll(tsdb, tags);
    }
docs: Sets the query to perform
  @param metric Name of the metric to search for
  @param tags A map of tag value pairs or simply an empty map
  @throws NoSuchUniqueName if the metric or any of the tag names/values did
  not exist
  @deprecated Please use one of the constructors instead. Will be removed in 2.3