in AzureCT/ServerSide/DisplayAvailability.js [150:194]
$('JobRecord', xml).each(function (i) {
jobID = $(this).find('JobID').text();
if (jobID == headerJobID) {
callTimeStamp = $(this).find('TimeStamp').text();
callID = $(this).find('CallID').text();
callReturn = $(this).find('Return').text();
callDisplay = $(this).find('Display').text();
callValid = $(this).find('Valid').text();
callDuration = $(this).find('Duration').text();
callTagged = $(this).find('Tag').text();
// Calculate X position
var thisTime = new Date(callTimeStamp);
if (callID == 1 || callID == '') {
dif = 1;
pos = 1;
lastTime = thisTime;
}
else {
dif = thisTime - lastTime;
pos += dif / timePerPixel;
lastTime = thisTime;
};
// Build Table Row for Results Table
myHTMLOutput += '<tr>';
myHTMLOutput += '<td>' + dateString(thisTime, 'withMilli') + '</td>';
myHTMLOutput += '<td>' + callDisplay + '</td>';
myHTMLOutput += '<td>' + Math.round(callDuration) + ' ms</td>';
if (callTagged == 'True') {
myHTMLOutput += "<td><a href=javascript:showTrace('" + jobID + "','" + callID + "')>View Trace</a></td>";
}
else {
myHTMLOutput += '<td> </td>';
};
myHTMLOutput += '</tr>';
// Build graph array
var myCallID = (+callID);
var datapoint = { x: pos, y: Math.round(callDuration), z: callValid };
data.push(datapoint);
};
});