This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function fetches a url and gets some of the instrumentation data. | |
* | |
* @param url the Url to fetch and instrument | |
* @return an object which contains the status code, latency, and contentLength. | |
*/ | |
function fetchUrl(url) { | |
try { | |
var start = new Date().getTime(); | |
var resp = UrlFetchApp.fetch(url); |