Refactor inserting metrics array into output
Refactor inserting metrics array into output

Prior to this commit, the GET and POST ways of retrieving metrics
would loop over their results and insert into the output.

After this commit, we place the metrics from either the GET or
POST way into a variable and loop over either one of them at the
end.

npwalker/pe_metric_curl_cron_jobs,npwalker/pe_metric_curl_cron_jobs