appd-client/src/main/java/com/signalfx/appd/client/MetricDataRequest.java
protected List<MetricData> process(JsonNode node) {
        JSONArray dataArray = node.getArray();
        List<MetricData> list = new LinkedList<>();
        for (int i = 0; i < dataArray.length(); i++) {
            JSONObject data = dataArray.getJSONObject(i);
            MetricData metricData =
                    new MetricData(data.getString("frequency"), data.getLong("metricId"),
                            data.getString("metricName"), data.getString("metricPath"));
            list.add(metricData);
            JSONArray valueArray = data.getJSONArray("metricValues");
            for (int j = 0; j < valueArray.length(); j++) {
                JSONObject value = valueArray.getJSONObject(j);
                metricData.metricValues.add(
                        new MetricValue(value.getLong("count"), value.getLong("value"),
                                value.getLong("max"), value.getLong("min"), value.getLong("sum"),
                                value.getLong("startTimeInMillis")));
            }
        }
        return list;
    }
protected List<MetricData> process(JsonNode node) {
        JSONArray dataArray = node.getArray();
        List<MetricData> list = new LinkedList<>();
        for (int i = 0; i < dataArray.length(); i++) {
            JSONObject data = dataArray.getJSONObject(i);
            MetricData metricData =
                    new MetricData(data.getString("frequency"), data.getLong("metricId"),
                            data.getString("metricName"), data.getString("metricPath"));
            list.add(metricData);
            JSONArray valueArray = data.getJSONArray("metricValues");
            for (int j = 0; j < valueArray.length(); j++) {
                JSONObject value = valueArray.getJSONObject(j);
                metricData.metricValues.add(
                        new MetricValue(value.getLong("count"), value.getLong("value"),
                                value.getLong("max"), value.getLong("min"), value.getLong("sum"),
                                value.getLong("startTimeInMillis")));
            }
        }
        return list;
    }
Process the JSON response from the request.

@param node
root node of JSON response.
@return list of {@link MetricData}