code: private Map<String,Long> getOverallMetrics(AppdynamicsApplication application, String instanceUrl) {
          Map<String,Long> overallMetrics = new HashMap<>();
          try {
              String url = joinURL(instanceUrl, String.format(OVERALL_METRIC_PATH, application.getAppID(), URLEncoder.encode(OVERALL_SUFFIX, "UTF-8"), String.valueOf(settings.getTimeWindow())));
              ResponseEntity<String> responseEntity = makeRestCall(url);
              String returnJSON = responseEntity.getBody();
              JSONParser parser = new JSONParser();
  
              try {
                  JSONArray array = (JSONArray) parser.parse(returnJSON);
  
                  for (Object entry : array) {
                      JSONObject jsonEntry = (JSONObject) entry;
                      String metricPath = getString(jsonEntry, "metricPath");
                      JSONArray metricValues =  getJsonArray(jsonEntry, "metricValues");
                      if (metricValues.isEmpty()){
                          continue;
                      }
                      JSONObject mObj = (JSONObject) metricValues.get(0);
                      Long metricValue = getLong(mObj, "value");
  
                      PerformanceMetric metric = new PerformanceMetric();
                      String metricName = parseMetricName(metricPath);
                      if(in(metricName,CALLS_PER_MINUTE,ERRORS_PER_MINUTE,AVERAGE_RESPONSE_TIME)){
                          metric.setName(parseMetricName(metricPath));
                          metric.setValue(metricValue);
                          overallMetrics.put(parseMetricName(metricPath),metricValue);
                      }
                  }
              } catch (ParseException | RestClientException e) {
                  LOG.error("Parsing metrics for : " + instanceUrl + ". Application =" + application.getAppName(), e);
              }
          } catch (MalformedURLException | UnsupportedEncodingException mfe) {
              LOG.error("malformed url for loading jobs", mfe);
          }
          return overallMetrics;
      }
docs: Obtains the "Overall Application Performance" metrics for the current application from Appdynamics
  e.g. /controller/#/location=METRIC_BROWSER&timeRange=last_15_minutes.BEFORE_NOW.-1.-1.15&application=<APPID>
  Currently used by the UI: calls per minute, errors per minute, average response time
  @param application the current application. Used to provide access to appID/name
  @return List of PerformanceMetrics used to populate the performance database