[임대현] [WEB-43] ServerMap생성시 각 Node의 응답 시간을 직접 노드에서 가져 오도록 수정.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3309 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Denny Lim
2014-02-11 07:28:57 +00:00
parent 7a4d3a4bcf
commit fc15dc93ae
@@ -17,7 +17,7 @@ pinpointApp
var htServermapData;
// define private variables of methods
var reset, showDetailInformation, renderApplicationStatistics, recalculateHistogram;
var reset, showDetailInformation, renderApplicationStatistics, parseHistogramForNvd3;
/**
* reset
@@ -218,6 +218,22 @@ pinpointApp
return histogram;
};
/**
* parse histogram for nvd3
* @param histogram
* @returns {Array}
*/
parseHistogramForNvd3 = function (histogram) {
var parsedHistogram = [];
angular.forEach(histogram, function (val, key) {
parsedHistogram.push({
label: key,
value: val
})
});
return parsedHistogram;
};
/**
* scope event on nodeInfoDetails.initialize
*/
@@ -231,7 +247,7 @@ pinpointApp
renderApplicationStatistics([
{
'key': "Response Time Histogram",
'values': recalculateHistogram(node.key, mapData.applicationMapData.linkDataArray)
'values' : parseHistogramForNvd3(node.histogram)
}
]);
//renderApplicationStatistics(histogramData);