code: public Collection<Metric> metricNames(long applicationId, String name)
      {
          QueryParameterList queryParams = new QueryParameterList();
          if(name != null && name.length() > 0)
              queryParams.add("name", name);
          return HTTP.GET(String.format("/v2/mobile_applications/%d/metrics.json", applicationId), null, queryParams, METRICS).get();
      }
docs: Returns the set of metrics for the given application.
  @param applicationId The id of the application to return metrics for
  @param name Filter metrics by name (or part of name)
  @return The set of metrics